Commit Graph
2 Commits
Author SHA1 Message Date
dualfroz d4a2eeba66 editor: Don't overwrite primary selection with only empty cursors
With several cursors and nothing selected, the per-selection text joined
into a string of newlines, which passed the `!text.is_empty()` check and
replaced the primary selection on every keystroke and cursor move.

Only write to the primary selection when at least one selection is
non-empty.

Closes #64446
2026-10-02 16:38:57 +02:00
upstream 16ea2153b4 Upstream zed-industries/zed state of the touched files before 35f256f943 2026-10-02 16:38:57 +02:00