Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep clipboard contents #73

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Keep clipboard contents #73

merged 1 commit into from
Apr 1, 2024

Conversation

alker0
Copy link
Owner

@alker0 alker0 commented Apr 1, 2024

Related: #72
This PR should fix it by keeping the clipboard contents by storing into a temporary variable and restoring it after file type detection.

If Vim synchronizes contents in the un-named register and the
system clipboard via setting the `clipboard` option, making a
temporary buffer breaks the clipboard contents because it
overwrites the un-named register with original file contents.
So keep the contents by storing into a temporary variable and
restoring it after file type detection.
@alker0 alker0 merged commit 2c78807 into main Apr 1, 2024
@alker0 alker0 added the bug Something isn't working label Apr 1, 2024
@alker0 alker0 deleted the tmp_buf_clipboard branch May 7, 2024 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant