0

I have just noticed an odd behavior with Find and Replace: if any matches are found, the replaced string is first inserted at the current insertion point (unexpected), and only afterwards used to replace any of the found matches. Illustrated below:

Step 1: I want to replace "m" with "!!!". Insertion point on line three. enter image description here

Step 2: Hit [Replace] button. "!!!" first appears at location of insertion point. enter image description here

Step 3: Hit [Replace] button a second time. Feature resumes expected behavior, replacing the first occurrence of search string.

enter image description here

Can anyone explain the reasoning behind this behavior? This feels like a bug. Is this a bug? (Running Mojave).

  • What do you want it to be doing? If you want to go to replace next instance, you need to go there first using find, not replace. Nice demo though! – ankii Aug 13 at 6:27

You must log in to answer this question.

Browse other questions tagged .