Skip to content

Adjacent selection merge upon insertion of text #45046

@JosephTLyons

Description

@JosephTLyons

Reproduction steps

  1. Type AAA
  2. Highlight A
  3. Duplicate selection
  4. Type

Notice selections were merged

Note: The merging of selections (as selections are being added) was fixed in #44811, this is about selections being merged on text insertion

Current vs. Expected behavior

Current (Zed):

Screen.Recording.2025-12-16.at.2.07.52.PM.mov

Expected (VS Code):

Screen.Recording.2025-12-16.at.5.50.50.PM.mov

Expected (Sublime Text):

Untitled.mov

Zed version and system specs

Zed: v0.219.0+nightly.2017.c1317baebebf955c589ef19d8c209b2ef526f75f (Zed Nightly c1317ba)
OS: macOS 26.1
Memory: 64 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Labels

area:editorFeedback for code editing, formatting, editor iterations, etcfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions