mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.1.2346: CTRL-R CTRL-R doesn't work with modifyOtherKeys
Problem: CTRL-R CTRL-R doesn't work with modifyOtherKeys. Solution: Allow key codes when fetching argument for CTRL-R. (closes #5266) Also fix CTRL-G in Insert mode.
This commit is contained in:
@@ -1747,6 +1747,7 @@ getcmdline_int(
|
||||
#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 */
|
||||
@@ -1754,6 +1755,7 @@ getcmdline_int(
|
||||
c = plain_vgetc(); /* CTRL-R CTRL-R <char> */
|
||||
extra_char = NUL;
|
||||
--no_mapping;
|
||||
--allow_keys;
|
||||
#ifdef FEAT_EVAL
|
||||
/*
|
||||
* Insert the result of an expression.
|
||||
|
Reference in New Issue
Block a user