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 "")
At the moment, when we do visual star search,
""
register's content is saved before search and restored after it.If we set
unnamed
toclipboard
option, (from:help clipboard
)""
register is the same as the"*
register. This leads to the problem, where this plugin changes (vianormal! 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""
)