summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-26 14:28:15 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-26 14:28:15 +0100
commit38571a04b4eb2853f46df8884750bcb9a8115db8 (patch)
treeb1d9f7ce21a909af8c54a37047e60ea74ec6329d /src/ex_getln.c
parentc1faf3dc3879e8a5e486f31445b5a5753dcbc6a3 (diff)
downloadvim-git-38571a04b4eb2853f46df8884750bcb9a8115db8.tar.gz
patch 8.1.2346: CTRL-R CTRL-R doesn't work with modifyOtherKeysv8.1.2346
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.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 0a3d9d4da..683215874 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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.