Skip to content

Fix wgrep footer marking excluding last result from edits#199

Open
fabianfranzelin wants to merge 1 commit into
dajva:masterfrom
fabianfranzelin:master
Open

Fix wgrep footer marking excluding last result from edits#199
fabianfranzelin wants to merge 1 commit into
dajva:masterfrom
fabianfranzelin:master

Conversation

@fabianfranzelin

Copy link
Copy Markdown

The previous code used (forward-line -1) after finding the 'rg finished' line, which moved point to the last result line and marked it as read-only footer. This caused wgrep to skip the last match during search-replace operations.

Fix by using (beginning-of-line) on the 'rg finished' line itself, so only that line and anything after it is marked as footer.

The previous code used (forward-line -1) after finding the 'rg finished'
line, which moved point to the last result line and marked it as
read-only footer. This caused wgrep to skip the last match during
search-replace operations.

Fix by using (beginning-of-line) on the 'rg finished' line itself,
so only that line and anything after it is marked as footer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant