Skip to content

preserve "* register's content#13

Open
snipervld wants to merge 1 commit into
bronson:masterfrom
snipervld:master
Open

preserve "* register's content#13
snipervld wants to merge 1 commit into
bronson:masterfrom
snipervld:master

Conversation

@snipervld

Copy link
Copy Markdown

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.

1 participant