>From v:register's help:

"The name of the register in effect for the current normal mode command 
(regardless of whether that command actually used a register)."

Since both star and plus are written after a normal mode command, I would 
expect setreg(v:register) to also write to both by default (without adding a 
third argument to setreg).

My original plan was to check if v:register was the first argument to setreg 
and write to both star and plus in that case, but when I got into the code, it 
looks like f_setreg only sees '+'  as its input and can't tell whether the 
argument was literally '+' or if it came from v:register. Giving it '&' instead 
of '+' was my solution to that problem, but I'm open to other ways of achieving 
the same thing.

-- 
-- 
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.

Raspunde prin e-mail lui