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

preserve "* register's content #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snipervld
Copy link

At the moment, when we do visual star search, "" register's content is saved before search and restored after it.

If we set unnamed to clipboard option, (from :help clipboard) "" register is the same as the "* register. This leads to the problem, where this plugin changes (via normal! gvy command) not only "" register, but "* too. When we restore "" register, "* register is not affected, so it's not restored, unlike standard vim's * behaviour.

This PR resolves described issue by saving "* register's content and restoring it later (just like we do for "")

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.

None yet

1 participant