0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2021-05-04 21:56:28 +02:00
parent 0279510444
commit 1ad72c8eb6
2 changed files with 5 additions and 2 deletions

View File

@@ -1119,9 +1119,10 @@ getcount:
old_mapped_len = typebuf_maplen(); 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); do_pending_operator(&ca, old_col, FALSE);
/* /*

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2832,
/**/ /**/
2831, 2831,
/**/ /**/