mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-20 15:40:29 +01:00
28917a970d
Hi! Pleased to be able to contribute In Helix, plain `y`/`d`/`c`/`p`/`R` operate on register `"` and the system clipboard is reached with `+y`/`+d`, etc... Under `vim.use_system_clipboard: "always"`, the plain operations also clobbered the system clipboard. For ex: - Pressing `d` on a blank line empties the OS clipboard - Pressing `d` on a selection overwrites the clipboard with the deleted text This restores Helix's separation between the `"` and `+` registers in helix mode only. Regular vim mode is not affected by the changes. Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable I'm pretty sure this is related to #42975 Release Notes: - fix(helix): system clipboard clobbering --------- Co-authored-by: Lukas Wirth <lukas@zed.dev>