Hi Andrew!

On Sa, 19 Apr 2014, Andrew wrote:

> Given a text file with the following two lines:
> 
>     first line
>     second line
> 
> If you now go to the second line and yank it, then go to the first line and 
> type in
> 
>     "_ddp
> 
> What I'd expect to happen is:
> 
>     second line
>     second line
> 
> What actually happens is:
> 
>     second line
> 
> The `p` doesn't do anything at all, unless you press it a second time.
> 
> After some experimentation, I figured out that the `v:register` variable is 
> not reset after the `"_dd` operation. As a result, the following `p` uses the 
> `_` register. This is reproducible with other registers as well. If you do 
> anything after the `"_dd` (like move down one line with `j`), the register is 
> reset just fine and `p` uses the default one.
> 
> The original issue that brought this to my attention is here if you'd like 
> more context: https://github.com/AndrewRadev/whitespaste.vim/issues/2

Can you please come up with a mapping that shows the wrong behaviour? I 
might have fix, but am not sure, after applying it, mappings using 
v:register still work correctly.

Best,
Christian
-- 
Banken sind gefährlicher als stehende Armeen
                -- Thomas Jefferson

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