[Bug] Find and Replace fails on certain usecase

Find and replace fails when words to be replaced are placed one after another, this should be a high priority bug for the reason that in some scenarios this kind of replacement would freeze the entire editor, user won’t be able to work unless they restart the editor, I couldn’t reproduce the scenario where editor froze with every test but it happens quite frequently.

Steps to reproduce

  1. Type in following sequence of word


  1. Find ‘a’
  2. Replace with word of length > 1
  3. For eg if replaced by ‘test’


ezgif.com-video-to-gif (1)

Feel free to expand this issue with more usecases where find and replace might fail

1 Like

Confirmed. I can reproduce it on the main branch.

1 Like