Mercurial > vim
comparison src/ex_getln.c @ 12960:004bc78c88e6 v8.0.1356
patch 8.0.1356: using simalt in a GUIEnter autocommand inserts characters
commit https://github.com/vim/vim/commit/c5aa55db7e5bc791f99fb15b0f4be0d5dd166f62
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 28 20:47:40 2017 +0100
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 28 Nov 2017 21:00:07 +0100 |
parents | 85a601f985ab |
children | 89e191a2a8a7 |
comparison
equal
deleted
inserted
replaced
12959:2f56f1e6699d | 12960:004bc78c88e6 |
---|---|
415 #endif | 415 #endif |
416 quit_more = FALSE; /* reset after CTRL-D which had a more-prompt */ | 416 quit_more = FALSE; /* reset after CTRL-D which had a more-prompt */ |
417 | 417 |
418 cursorcmd(); /* set the cursor on the right spot */ | 418 cursorcmd(); /* set the cursor on the right spot */ |
419 | 419 |
420 /* Get a character. Ignore K_IGNORE, it should not do anything, such | 420 /* Get a character. Ignore K_IGNORE and K_NOP, they should not do |
421 * as stop completion. */ | 421 * anything, such as stop completion. */ |
422 do | 422 do |
423 { | 423 { |
424 c = safe_vgetc(); | 424 c = safe_vgetc(); |
425 } while (c == K_IGNORE); | 425 } while (c == K_IGNORE || c == K_NOP); |
426 | 426 |
427 if (KeyTyped) | 427 if (KeyTyped) |
428 { | 428 { |
429 some_key_typed = TRUE; | 429 some_key_typed = TRUE; |
430 #ifdef FEAT_RIGHTLEFT | 430 #ifdef FEAT_RIGHTLEFT |