junegunn / vim-peekaboo

:eyes: " / @ / CTRL-R
1.15k stars 38 forks source link

Register name gets inserted into current buffer, Neovim 0.4.2 #61

Closed deathlyfrantic closed 4 years ago

deathlyfrantic commented 5 years ago

This is a really weird thing I've started seeing lately, I'm guessing since I updated to Neovim 0.4.2. Say I have this buffer. I've selected the second "something" and I want to copy it:

Screen Shot 2019-09-26 at 8 59 17 AM

When I type the ", Peekaboo appears as normal. Then if I type + to choose the system clipboard register, this happens:

Screen Shot 2019-09-26 at 9 00 25 AM

It always seems to be the second word in the fourth line where this happens. The highlighted region is using the peekabooSelected highlight group. The selected item does get yanked to the correct register, but now I have an errant + in my buffer.

Any ideas would be appreciated. This is really strange!

deathlyfrantic commented 5 years ago

FWIW I just tested this with nvim -u NONE and added peekaboo as the only plugin, and this still happens. But it might be a Neovim bug? It doesn't happen with regular Vim and I don't remember it happening before I upgraded to Neovim 0.4.2.

lourenci commented 5 years ago

I've some other weird behaviours with nvim 0.4.2 along with peekaboo. Every once in a while, when I paste from the " register, the window turns out into a one-line window. I've to reopen the nvim. Do you have this problem too?

hwalinga commented 4 years ago

Reproduced on nvim 0.4.3

https://i.imgur.com/9p5jLFk.png

junegunn commented 4 years ago

I don't have the issue but I merged #62 as it's harmless. Please check if it fixes the issue.

hwalinga commented 4 years ago

Oh, yes that fixes it. Thank you.