Patch 8.2.2062
Problem: <Cmd> does not handle CTRL-V.
Solution: Call get_literal() after encountering CTRL-V. (closes #7387)
Files: src/getchar.c, src/testdir/test_mapping.vim
*** ../vim-8.2.2061/src/getchar.c 2020-11-18 11:34:30.182191403 +0100
--- src/getchar.c 2020-11-28 14:43:00.850323276 +0100
***************
*** 3675,3680 ****
--- 3675,3688 ----
}
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)
aborted = TRUE;
*** ../vim-8.2.2061/src/testdir/test_mapping.vim 2020-11-18 11:34:30.182191403 +0100
--- src/testdir/test_mapping.vim 2020-11-28 14:41:13.746719009 +0100
***************
*** 972,977 ****
--- 972,982 ----
unmap <F3>
unmap! <F3>
%bw!
+
+ " command line ending in "0" is handled without errors
+ onoremap ix <cmd>eval 0<cr>
+ call feedkeys('dix.', 'xt')
+ ounmap ix
endfunc
" text object enters visual mode
*** ../vim-8.2.2061/src/version.c 2020-11-27 20:54:56.609430538 +0100
--- src/version.c 2020-11-28 14:38:10.487392916 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2062,
/**/
--
WOMAN: King of the who?
ARTHUR: The Britons.
WOMAN: Who are the Britons?
ARTHUR: Well, we all are. we're all Britons and I am your king.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Br...@Moolenaar.net --
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 ///