diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-28 20:47:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-28 20:47:40 +0100 |
commit | c5aa55db7e5bc791f99fb15b0f4be0d5dd166f62 (patch) | |
tree | 379239757644d0828084afa4ba30c78a5e219a8b /src/ex_getln.c | |
parent | a45ff6caba706191b4fe328cab4c742ce17fa779 (diff) | |
download | vim-git-c5aa55db7e5bc791f99fb15b0f4be0d5dd166f62.tar.gz |
patch 8.0.1356: using simalt in a GUIEnter autocommand inserts charactersv8.0.1356
Problem: Using simalt in a GUIEnter autocommand inserts strange characters.
(Chih-Long Chang)
Solution: Ignore K_NOP in Insert mode. (closes #2379)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 02d03b4e1..4202b036e 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -417,12 +417,12 @@ getcmdline( cursorcmd(); /* set the cursor on the right spot */ - /* Get a character. Ignore K_IGNORE, it should not do anything, such - * as stop completion. */ + /* Get a character. Ignore K_IGNORE and K_NOP, they should not do + * anything, such as stop completion. */ do { c = safe_vgetc(); - } while (c == K_IGNORE); + } while (c == K_IGNORE || c == K_NOP); if (KeyTyped) { |