junegunn / vim-peekaboo

:eyes: " / @ / CTRL-R
1.13k stars 39 forks source link

Ctrl-R Insert Mode places register one char before last #86

Open crispyrooster opened 1 year ago

crispyrooster commented 1 year ago

If I am in insert mode and have so far typed

"text"

I then type a to paste the contents of the a register ("AREG"), I get the a register pasted before the final t instead of after it

"texAREGt" instead of "textAREG"

This only occurs when I am at the last character of the line, not when in the middle. For example, if I am in the middle of following line, and enter Insert mode and type "texta", the put text is the correct position.

"This line of textAREG is here"

If I disable peekaboo, the issue is corrected.