0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.1356: using simalt in a GUIEnter autocommand inserts characters

Problem:    Using simalt in a GUIEnter autocommand inserts strange characters.
            (Chih-Long Chang)
Solution:   Ignore K_NOP in Insert mode. (closes #2379)
This commit is contained in:
Bram Moolenaar
2017-11-28 20:47:40 +01:00
parent a45ff6caba
commit c5aa55db7e
3 changed files with 7 additions and 5 deletions

View File

@@ -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)
{