forked from aniani/vim
patch 8.2.2062: <Cmd> does not handle CTRL-V
Problem: <Cmd> does not handle CTRL-V. Solution: Call get_literal() after encountering CTRL-V. (closes #7387)
This commit is contained in:
@@ -3675,6 +3675,14 @@ getcmdkeycmd(
|
|||||||
}
|
}
|
||||||
c1 = TO_SPECIAL(c1, c2);
|
c1 = TO_SPECIAL(c1, c2);
|
||||||
}
|
}
|
||||||
|
if (c1 == Ctrl_V)
|
||||||
|
{
|
||||||
|
// CTRL-V is followed by octal, hex or other characters, reverses
|
||||||
|
// what AppendToRedobuffLit() does.
|
||||||
|
no_reduce_keys = TRUE; // don't merge modifyOtherKeys
|
||||||
|
c1 = get_literal();
|
||||||
|
no_reduce_keys = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (got_int)
|
if (got_int)
|
||||||
aborted = TRUE;
|
aborted = TRUE;
|
||||||
|
@@ -972,6 +972,11 @@ func Test_map_cmdkey()
|
|||||||
unmap <F3>
|
unmap <F3>
|
||||||
unmap! <F3>
|
unmap! <F3>
|
||||||
%bw!
|
%bw!
|
||||||
|
|
||||||
|
" command line ending in "0" is handled without errors
|
||||||
|
onoremap ix <cmd>eval 0<cr>
|
||||||
|
call feedkeys('dix.', 'xt')
|
||||||
|
ounmap ix
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" text object enters visual mode
|
" text object enters visual mode
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2062,
|
||||||
/**/
|
/**/
|
||||||
2061,
|
2061,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user