machakann / vim-highlightedyank

Make the yanked region apparent!
844 stars 22 forks source link

Screen flashes and looses visual selection when switching tab #32

Closed copy closed 6 years ago

copy commented 6 years ago

For testing, set highlightedyank_highlight_duration to a high value, for example:

let g:highlightedyank_highlight_duration = 10000

Then:

Tested with the latest master version of vim-highlightedyank and neovim v0.2.2.

machakann commented 6 years ago

Thank you for your report. That's because vim-highlightedyank moved the cursor to another tab to delete highlights, probably. I think it is not so reasonable to keep the highlight in another tab, so I will change it as the highlight will be cleared immediately when a user switches tab windows.

machakann commented 6 years ago

I pushed a fix for this problem. Please update vim-highlightedyank and test it.

copy commented 6 years ago

Can confirm this is fixed. Cheers!