nvim-miniyank
nvim-miniyank copied to clipboard
Wrong message when trying to paste from an empty register
After having a look at my registers with :reg, I tried to paste ("*p) from * which was empty and got this overly verbose (and wrong) message:
Error detected while processing function miniyank#do_putnext[5]..miniyank#putreg:
line 3:
E353: Nothing in register 0
Three lines is not overly verbose, that is how vim prints an error with context.
One could add a manual check that simulates the error message with the correct register name in some cases, but doing it right for "/+/* in all cases is not possible, as v:register will tell the "adjusted" name (for cb=unnamed[plus]) and not the actual register the user requested. Not sure the complexity will be worth this cosmetic issue.