Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace all does not account for line change #349

Closed
SilenZcience opened this issue Jul 31, 2024 · 1 comment · Fixed by #350
Closed

replace all does not account for line change #349

SilenZcience opened this issue Jul 31, 2024 · 1 comment · Fixed by #350

Comments

@SilenZcience
Copy link
Contributor

The search and replace functionality does not account for line change when replacing all occurences.

Example:
Write a simple file with the following content:

A_A_

and have the cursor on the last position.
When replacing every A with XXX (or anything of length 3 or greater) the following change will be made:

XXX_A_

The expected bahavior would be to have the following result:

XXX_XXX_
@asottile
Copy link
Owner

should be pretty easy to fix if you'd like to send a patch

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 a pull request may close this issue.

2 participants