1
0
forked from aniani/vim

patch 8.0.1786: no test for 'termwinkey'

Problem:    No test for 'termwinkey'.
Solution:   Add a test.  Make feedkeys() handle terminal_loop() returning
            before characters are consumed.
This commit is contained in:
Bram Moolenaar
2018-05-01 18:47:59 +02:00
parent 8a938af6dd
commit b2ac14c0b5
7 changed files with 52 additions and 19 deletions

View File

@@ -270,6 +270,7 @@ enum key_extra
, KE_FOCUSGAINED = 98 /* focus gained */
, KE_FOCUSLOST = 99 /* focus lost */
, KE_MOUSEMOVE = 100 /* mouse moved with no button down */
, KE_CANCEL = 101 /* return from vgetc() */
};
/*
@@ -455,6 +456,7 @@ enum key_extra
#define K_IGNORE TERMCAP2KEY(KS_EXTRA, KE_IGNORE)
#define K_NOP TERMCAP2KEY(KS_EXTRA, KE_NOP)
#define K_CANCEL TERMCAP2KEY(KS_EXTRA, KE_CANCEL)
#define K_MOUSEDOWN TERMCAP2KEY(KS_EXTRA, KE_MOUSEDOWN)
#define K_MOUSEUP TERMCAP2KEY(KS_EXTRA, KE_MOUSEUP)