Describe the bug
When calling getreg(), if the {regname} string is longer than one character, Vim only reads the first character and silently ignores the rest of the string
To Reproduce
Detailed steps to reproduce the behavior:
vim --clean (or gvim --clean, etc.):call setreg('a', 'this is a test string'):echo getreg('abcde')this is a test stringExpected behavior
If this behavior is not intended, throw an error to let the user know this is not a valid register name.
If this is indeed the intended behavior, maybe it should be documented in :help?
Environment
Additional context
This also affects setreg(), getregtype() and getreginfo()
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()