Ingo Karkat wrote:

> First, thanks for fixing this issue with unmapping CTRL-C, Bram and
> Christian! Unfortunately, after patch 7.4.569, I cannot map <C-C> in
> visual or select mode any more. (I have mapped this to "copy to
> clipboard", similar to what's in mswin.vim.)
> 
> Steps to reproduce:
> 
>     $ vim -N -u NONE
>     :vnoremap <C-c> :<C-u>quit!<CR>
>     :echo "Press V CTRL-C now"
>     " (stays inside Vim)
> 
> Interestingly, :normal or feedkeys() still work:
> 
>     :execute "normal V\<C-c>"
>     " (quits as expected)
> 
> This happens with a HUGE Vim build, on both Windows/x64 and Linux/x64.
> Other modes work fine, only :vmap, :xmap, and :smap are affected.

The problem is with using State directly, should use get_real_state().

I added a test, but it also passes without the fix.  Same problem that
it works when using :normal or feedkeys().

-- 
>From "know your smileys":
 :----}  You lie like Pinocchio

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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