* deleted when ESC is hit.
*/
++no_mapping;
+ ++allow_keys;
regname = plain_vgetc();
LANGMAP_ADJUST(regname, TRUE);
if (regname == Ctrl_R || regname == Ctrl_O || regname == Ctrl_P)
LANGMAP_ADJUST(regname, TRUE);
}
--no_mapping;
+ --allow_keys;
#ifdef FEAT_EVAL
/* Don't call u_sync() while typing the expression or giving an error
* deleted when ESC is hit.
*/
++no_mapping;
+ ++allow_keys;
c = plain_vgetc();
--no_mapping;
+ --allow_keys;
switch (c)
{
/* CTRL-G k and CTRL-G <Up>: cursor up to Insstart.col */
#endif
putcmdline('"', TRUE);
++no_mapping;
+ ++allow_keys;
i = c = plain_vgetc(); /* CTRL-R <char> */
if (i == Ctrl_O)
i = Ctrl_R; /* CTRL-R CTRL-O == CTRL-R CTRL-R */
c = plain_vgetc(); /* CTRL-R CTRL-R <char> */
extra_char = NUL;
--no_mapping;
+ --allow_keys;
#ifdef FEAT_EVAL
/*
* Insert the result of an expression.
call RunTest_modifyOtherKeys(function('GetEscCodeCSIu'))
endfunc
+func Test_modifyOtherKeys_no_mapping()
+ set timeoutlen=10
+
+ let @a = 'aaa'
+ call feedkeys(":let x = '" .. GetEscCodeCSI27('R', 5) .. GetEscCodeCSI27('R', 5) .. "a'\<CR>", 'Lx!')
+ call assert_equal("let x = 'aaa'", @:)
+
+ new
+ call feedkeys("a" .. GetEscCodeCSI27('R', 5) .. GetEscCodeCSI27('R', 5) .. "a\<Esc>", 'Lx!')
+ call assert_equal("aaa", getline(1))
+ bwipe!
+
+ new
+ call feedkeys("axx\<CR>yy" .. GetEscCodeCSI27('G', 5) .. GetEscCodeCSI27('K', 5) .. "a\<Esc>", 'Lx!')
+ call assert_equal("axx", getline(1))
+ call assert_equal("yy", getline(2))
+ bwipe!
+
+ set timeoutlen&
+endfunc
+
func RunTest_mapping_shift(key, func)
call setline(1, '')
if a:key == '|'