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
S
Description
My contributions to zed-industries/zed: 11 commits, 1 merged PRs
1.6 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 100%