diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-30 00:56:57 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-30 01:15:18 -0500 |
commit | 5e1cad6d3378398c059e1a7144e1310b7bcb2398 (patch) | |
tree | 2d90915886e5643d72d1733733fc02533f50c920 | |
parent | 78aa41354ea9b6bb2d6ce750f02f0f8b3d7d4418 (diff) | |
download | rneovim-5e1cad6d3378398c059e1a7144e1310b7bcb2398.tar.gz rneovim-5e1cad6d3378398c059e1a7144e1310b7bcb2398.tar.bz2 rneovim-5e1cad6d3378398c059e1a7144e1310b7bcb2398.zip |
vim-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 vim/vim#2379)
https://github.com/vim/vim/commit/c5aa55db7e5bc791f99fb15b0f4be0d5dd166f62
-rw-r--r-- | src/nvim/edit.c | 2 | ||||
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index eecea03a19..cb5c7023d7 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -638,7 +638,7 @@ static int insert_check(VimState *state) static int insert_execute(VimState *state, int key) { - if (key == K_IGNORE) { + if (key == K_IGNORE || key == K_NOP) { return -1; // get another key } InsertState *s = (InsertState *)state; diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index e5f5e5ad87..c09a3c08ef 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -536,7 +536,7 @@ static int command_line_check(VimState *state) static int command_line_execute(VimState *state, int key) { - if (key == K_IGNORE) { + if (key == K_IGNORE || key == K_NOP) { return -1; // get another key } |