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

Replacement doesn't finish when the replacement string contains the original string. #924

Open
mitsuse opened this issue Feb 2, 2016 · 2 comments

Comments

@mitsuse
Copy link
Contributor

mitsuse commented Feb 2, 2016

Executing replacement command such as %s/foo/foofoo/g, XCode freezes.
It seems to me that the command causes infinite loop unlike Vim.

Related Issue

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@mitsuse mitsuse changed the title Replacement doesn't finish when the replacement string includes the original string. Replacement doesn't finish when the replacement string contains the original string. Feb 2, 2016
@pebble8888
Copy link
Member

I can't reproduce the issue.
If you have found text to do it, please tell me.

My result is here.

original text:

foo
foofoo
foofoofoo

result:

foofoo
foofoofoofoo
foofoofoofoofoofoo

@mitsuse
Copy link
Contributor Author

mitsuse commented Feb 22, 2016

@pebble8888

Thanks for your comment.

Sorry, not explaining enouch.
My Xcode hangs up when typing a after executing %s/foo/foofoo/gc to replace all text matched with pattern.
In my environment, the issue is reproduced with the same text which you write.

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

No branches or pull requests

2 participants