]> granicus.if.org Git - vim/commitdiff
patch 8.2.2832: operator cancelled by moving mouse when using popup v8.2.2832
authorBram Moolenaar <Bram@vim.org>
Tue, 4 May 2021 19:56:28 +0000 (21:56 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 4 May 2021 19:56:28 +0000 (21:56 +0200)
Problem:    Operator cancelled by moving mouse when using popup. (Sergey
            Vlasov)
Solution:   Do not trigger an operator for a mouse move events. (closes #8176)

src/normal.c
src/version.c

index a15ae358901971de94b9c4b44fc6900426a15d46..92135c18c3f1706f30f325b4c40cefe1924c91b5 100644 (file)
@@ -1119,9 +1119,10 @@ getcount:
        old_mapped_len = typebuf_maplen();
 
     /*
-     * If an operation is pending, handle it.  But not for K_IGNORE.
+     * If an operation is pending, handle it.  But not for K_IGNORE or
+     * K_MOUSEMOVE.
      */
-    if (ca.cmdchar != K_IGNORE)
+    if (ca.cmdchar != K_IGNORE && ca.cmdchar != K_MOUSEMOVE)
        do_pending_operator(&ca, old_col, FALSE);
 
     /*
index d9868ef902f10b15f9b30ea09a5c3b01707fbebf..c28a39c64befdf3c45a06fd56b6446527ea81938 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2832,
 /**/
     2831,
 /**/