Skip to content

Synced find query double escaped when shared among windows #6772

@nk9

Description

@nk9

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)

Sublime-escaped-slashes.mp4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions