summaryrefslogtreecommitdiff
path: root/src/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 8328e19a1..e93ce0529 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1483,10 +1483,14 @@ vgetc()
#endif
)
{
+ int save_allow_keys = allow_keys;
+
++no_mapping;
+ allow_keys = 0; /* make sure BS is not found */
c2 = vgetorpeek(TRUE); /* no mapping for these chars */
c = vgetorpeek(TRUE);
--no_mapping;
+ allow_keys = save_allow_keys;
if (c2 == KS_MODIFIER)
{
mod_mask = c;