From 0f68e6c07aaf62c034a242f183b93c1bb44e7f93 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 5 Apr 2022 13:17:01 +0100 Subject: 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) --- src/mouse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mouse.c') diff --git a/src/mouse.c b/src/mouse.c index b81aff248..42963341c 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -261,7 +261,10 @@ do_mouse( { // 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; -- cgit v1.2.1