Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 323 by [email protected]: setreg(..., ..., 'al') keeps
appending newlines
https://code.google.com/p/vim/issues/detail?id=323
What steps will reproduce the problem?
1. Select a charwise text into a register
2. Do :call setreg('"', '', 'al') to transform it into a linewise register
3. Paste, everything works (check with :reg ")
4. Do :call setreg('"', '', 'al') to transform it into a linewise register
again
5. Paste, now there's 2 newlines in the register (check with :reg ")
What is the expected output? What do you see instead?
I would expect that if a register is already linewise, it wouldn't get any
extra newlines.
What version of the product are you using? On what operating system?
Vim 4.7.488 on OSX 10.10.1
Please provide any additional information below.
From the documentation I could not find out whether this was intentional or
not. I suspect not as in the original conversation when this feature was
added in 2002, Bram mentioned that it would be neat if it could be used to
save and restore registers.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.