sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Synced find query double escaped when shared among windows

Open nk9 opened this issue 3 months ago • 5 comments

Description of the bug

Backslashes are double-escaped when query is shared across windows

Steps to reproduce

  1. Open several files in ST in different windows
  2. Cmd-F to open the find bar
  3. Cmd-Opt-R to make it a regex search
  4. Type \d in the query
  5. Switch to another window and bring up the find bar (Cmd-F)
  6. Notice that the query has been incorrectly escaped as \\d

Expected behavior

The query should be shared among the windows without being corrupted

Actual behavior

The query in other windows has backslashes double-escaped, so its meaning has changed.

Sublime Text build number

4200

Operating system & version

macOS 15.6.1 (24G90)

https://github.com/user-attachments/assets/b90a4962-e810-422d-a4a8-fa7a4196338c

nk9 avatar Sep 24 '25 12:09 nk9