1
0
forked from aniani/vim

patch 8.2.2833: two key command cancelled by moving mouse when using popup

Problem:    Two key command cancelled by moving mouse when using popup.
            (Sergey Vlasov)
Solution:   Ignore K_MOUSEMOVE in plain_vgetc().
This commit is contained in:
Bram Moolenaar
2021-05-05 19:58:17 +02:00
parent 1ad72c8eb6
commit 3a00659db7
2 changed files with 5 additions and 1 deletions

View File

@@ -1932,7 +1932,9 @@ plain_vgetc(void)
do
c = safe_vgetc();
while (c == K_IGNORE || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR);
while (c == K_IGNORE
|| c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR
|| c == K_MOUSEMOVE);
if (c == K_PS)
// Only handle the first pasted character. Drop the rest, since we