Find replace action applies twice

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Find-replace (Cmd+Option+F) replaces twice.

This bug appeared in the last month.

Steps to Reproduce

Example:

zz
1. aa
bbb
2. aa
3. aa
4. aa

The first replace (aa --> cc) replaces 1, the second replace (by hitting Enter) replaces 2, 3, the final one 4.

Expected Behavior

Replace 1, then 2, then 3, then 4.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.2.16
Commit: 3e548838cf824b70851dd3ef27d0c6aae371b3f0
Date: 2026-04-28T21:07:47.682Z
Layout: editor
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Cursor/3.2.16 Chrome/142.0.7444.265 Electron/39.8.1 Safari/537.36

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. From the screenshot I can see all toggles are off (Match Case, Whole Word, Regex, Preserve Case), so it’s a plain literal replace. That means it’s a simple case and it’s not explained by any regex weirdness.

What I noticed: it’s specifically matches #2 and #3 that get merged (adjacent lines 4 and 5), but #3 and #4 (also adjacent, lines 5 and 6) do not. That looks like a specific edge case, not a general “skip every other” pattern.

To narrow down the cause, can you help with three things?

  1. Is it reproducible every time? If you restart Cursor and repeat the steps on the same text, do you get the same result?
  2. Does it happen with cursor --disable-extensions?
  3. If you can, please try the same thing in a clean VS Code (any recent release). That will show if this is our bug or an upstream baseline issue.

A short video showing the behavior would also help a lot, if it’s easy to record.

Once you have the results, I’ll log it internally. I can’t promise an ETA yet.