From: Bram Moolenaar Date: Tue, 4 May 2021 19:56:28 +0000 (+0200) Subject: patch 8.2.2832: operator cancelled by moving mouse when using popup X-Git-Tag: v8.2.2832 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ad72c8eb601d681c84b47380fc31b6d23602d51;p=vim patch 8.2.2832: operator cancelled by moving mouse when using popup Problem: Operator cancelled by moving mouse when using popup. (Sergey Vlasov) Solution: Do not trigger an operator for a mouse move events. (closes #8176) --- diff --git a/src/normal.c b/src/normal.c index a15ae3589..92135c18c 100644 --- a/src/normal.c +++ b/src/normal.c @@ -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); /* diff --git a/src/version.c b/src/version.c index d9868ef90..c28a39c64 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2832, /**/ 2831, /**/