# HG changeset patch # User Bram Moolenaar # Date 1620158406 -7200 # Node ID b7f58be68c021d8335281229698b9cc700c664b3 # Parent 2cbf16b37b921e9af030b8c6c2d1f0e5a231d585 patch 8.2.2832: operator cancelled by moving mouse when using popup Commit: https://github.com/vim/vim/commit/1ad72c8eb601d681c84b47380fc31b6d23602d51 Author: Bram Moolenaar Date: Tue May 4 21:56:28 2021 +0200 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2832, +/**/ 2831, /**/ 2830,