diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-26 14:28:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-26 14:28:15 +0100 |
commit | 38571a04b4eb2853f46df8884750bcb9a8115db8 (patch) | |
tree | b1d9f7ce21a909af8c54a37047e60ea74ec6329d /src/ex_getln.c | |
parent | c1faf3dc3879e8a5e486f31445b5a5753dcbc6a3 (diff) | |
download | vim-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.c | 2 |
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. |