Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Zero-length matches at EOL#53

Merged
smashwilson merged 3 commits intomasterfrom
aw/skipped-rows
Mar 22, 2018
Merged

Zero-length matches at EOL#53
smashwilson merged 3 commits intomasterfrom
aw/skipped-rows

Conversation

@smashwilson
Copy link
Copy Markdown
Contributor

@smashwilson smashwilson commented Mar 22, 2018

If there is a zero-length match at the end of a line, advancing the column of last_search_end_position caused the next iteration of TextBuffer::scan_in_range() to skip the next line. Positioning last_search_end_position at the beginning of the next row instead corrects this.

Fixes atom/atom#16983.

@maxbrunsfeld
Copy link
Copy Markdown
Contributor

⚡️ Thanks for fixing this @smashwilson!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants