summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-29 16:44:00 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-29 16:44:00 +0100
commitbad8a013c238595aa206690210eb1367fbc878f9 (patch)
treeacbb3312539ea808a8fceaab70125bb817a745ac /src/edit.c
parent590f365f91511c164253c5b5812d4d0fc4a238d6 (diff)
patch 8.2.4846: termcodes test failsv8.2.4846
Problem: Termcodes test fails. Solution: use CTRL-SHIFT-V to insert an unsimplified key. (closes #10316)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index 3790bfb5d6..61c1694836 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -1899,7 +1899,11 @@ get_literal(int noReduceKeys)
* vi-compatible (maybe there should be an option for it?) -- webb
*/
if (gui.in_use)
+ {
++allow_keys;
+ if (noReduceKeys)
+ ++no_reduce_keys;
+ }
#endif
#ifdef USE_ON_FLY_SCROLL
dont_scroll = TRUE; // disallow scrolling here
@@ -1992,7 +1996,11 @@ get_literal(int noReduceKeys)
--no_mapping;
#ifdef FEAT_GUI
if (gui.in_use)
+ {
--allow_keys;
+ if (noReduceKeys)
+ --no_reduce_keys;
+ }
#endif
if (nc)
{