Skip to content

fix vim_system_clipboard_register=true put/yank not working on Linux#159

Open
BrettKulp wants to merge 2 commits into
leohenon:ocvfrom
BrettKulp:fix/vim_system_clipboard_register
Open

fix vim_system_clipboard_register=true put/yank not working on Linux#159
BrettKulp wants to merge 2 commits into
leohenon:ocvfrom
BrettKulp:fix/vim_system_clipboard_register

Conversation

@BrettKulp
Copy link
Copy Markdown

fixes y/p when "vim_system_clipboard_register": true in tui.json.

Before this change y/p would copy into only system clipboard so I could ctrl + shift + v to paste into terminal but p would do nothing.

This fixes that

@leohenon leohenon force-pushed the ocv branch 2 times, most recently from 57f1919 to 651c661 Compare May 22, 2026 20:37
Copy link
Copy Markdown
Owner

@leohenon leohenon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the old clipboardRegister only if Clipboard.read() errors, and clear it when the read succeeds but returns image/non-text content? Otherwise, after copying an image, p can paste the previous text yank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants