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 a15ae35..92135c1 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1119,9 +1119,10 @@
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);
/*