ivansafrin / Polycode

Polycode is a cross-platform framework for creative code.
polycode.org
MIT License
2.38k stars 347 forks source link

[IDE]: Find and replace bug when find string is a substring of replace #231

Open ghost opened 11 years ago

ghost commented 11 years ago

[observed on OS X 10.7.5]

When performing a find and replace stepwise, if the find string is a substring of the replace string, the process gets hung up on the first match, repeatedly replacing it.

FIND = "jump" REPLACE = "jumps" FILE TEXT = "The quick brown fox jump over the lazy dog"

REPLACE 1: "The quick brown fox jumps over the lazy dog" REPLACE 2: "The quick brown fox jumpss over the lazy dog" REPLACE 3: "The quick brown fox jumpsss over the lazy dog" ...

'Replace all' seems to work, but that means you can't replace stepwise.

fodinabor commented 9 years ago

Is it atm. possible to replace stepwise?