]> granicus.if.org Git - vim/commitdiff
patch 8.2.2833: two key command cancelled by moving mouse when using popup v8.2.2833
authorBram Moolenaar <Bram@vim.org>
Wed, 5 May 2021 17:58:17 +0000 (19:58 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 5 May 2021 17:58:17 +0000 (19:58 +0200)
Problem:    Two key command cancelled by moving mouse when using popup.
            (Sergey Vlasov)
Solution:   Ignore K_MOUSEMOVE in plain_vgetc().

src/getchar.c
src/version.c

index cf2711bcd190383458d0a07fb87a4cbba0c86579..185b73bdb02765b46446df11e99d17aa99e3f7f5 100644 (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
index c28a39c64befdf3c45a06fd56b6446527ea81938..93365768adf3ce3bebe00ecc3e545d71a84254e7 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2833,
 /**/
     2832,
 /**/