summaryrefslogtreecommitdiff
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-27 16:29:28 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-27 16:29:28 +0100
commitc8bcfe7efd4cfdfd7f503700aba45c42765cd4dc (patch)
tree78ad672bf27e47c47315297818a06be29dae831e /src/getchar.c
parent8226ac6b5916c736dde751df9cb8d03c19cb5611 (diff)
downloadvim-git-c8bcfe7efd4cfdfd7f503700aba45c42765cd4dc.tar.gz
patch 8.0.1546: using feedkeys() in a terminal may trigger mappingsv8.0.1546
Problem: Using feedkeys() in a terminal window may trigger mappings. (Charles Sheridan) Solution: Avoid triggering a mapping when peeking for a key.
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 39ccebb64..7025f6733 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1854,7 +1854,7 @@ vpeekc(void)
return vgetorpeek(FALSE);
}
-#if defined(FEAT_TERMRESPONSE) || defined(PROTO)
+#if defined(FEAT_TERMRESPONSE) || defined(FEAT_TERMINAL) || defined(PROTO)
/*
* Like vpeekc(), but don't allow mapping. Do allow checking for terminal
* codes.