Problem: Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat)
Solution: Call get_real_state() instead of using State directly.
:inoreab чкпр vim
GAчкпр
\e
-:" mapping of ctrl-c in insert mode
+:" mapping of ctrl-c in Insert mode
:set cpo-=< cpo-=k
:inoremap <c-c> <ctrl-c>
:cnoremap <c-c> dummy
GA
TEST2: CTRL-C |\ 3A|
\e
-:nunmap <c-c>
-
-: " langmap should not get remapped in insert mode
+:unmap <c-c>
+:unmap! <c-c>
+:"
+:" mapping of ctrl-c in Visual mode
+:vnoremap <c-c> :<C-u>$put ='vmap works'
+GV\ 3
+:vunmap <c-c>
+:"
+:" langmap should not get remapped in insert mode
:inoremap { FAIL_ilangmap
:set langmap=+{ langnoremap
o+\e
vim
TEST2: CTRL-C |<ctrl-c>A|
+vmap works
+
+
/* ... there is no need for CTRL-C to interrupt something, don't let
* it set got_int when it was mapped. */
- if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & State)
+ if ((mapped_ctrl_c | curbuf->b_mapped_ctrl_c) & get_real_state())
ctrl_c_interrupts = FALSE;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 573,
/**/
572,
/**/