diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-27 16:29:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-27 16:29:28 +0100 |
commit | c8bcfe7efd4cfdfd7f503700aba45c42765cd4dc (patch) | |
tree | 78ad672bf27e47c47315297818a06be29dae831e /src/getchar.c | |
parent | 8226ac6b5916c736dde751df9cb8d03c19cb5611 (diff) | |
download | vim-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.c | 2 |
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. |