Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong message when trying to paste from an empty register #10

Open
kurkale6ka opened this issue Dec 21, 2016 · 1 comment
Open

Wrong message when trying to paste from an empty register #10

kurkale6ka opened this issue Dec 21, 2016 · 1 comment

Comments

@kurkale6ka
Copy link

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
@bfredl
Copy link
Owner

bfredl commented Dec 21, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants