patch 8.2.4692: no test for what 8.2.4691 fixes
Problem: No test for what 8.2.4691 fixes.
Solution: Add a test. Use a more generic sotlution. (closes #10090)
diff --git a/src/mouse.c b/src/mouse.c
index b81aff2..4296334 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -261,7 +261,10 @@
{
// If the next character is the same mouse event then use that
// one. Speeds up dragging the status line.
- if (vpeekc() != NUL)
+ // Note: Since characters added to the stuff buffer in the code
+ // below need to come before the next character, do not do this
+ // when the current character was stuffed.
+ if (!KeyStuffed && vpeekc() != NUL)
{
int nc;
int save_mouse_row = mouse_row;