summaryrefslogtreecommitdiffstats
path: root/src/mouse.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-05 13:17:01 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-05 13:17:01 +0100
commit0f68e6c07aaf62c034a242f183b93c1bb44e7f93 (patch)
tree6d4066cdf09d7830138a499bc75c2881115a98d3 /src/mouse.c
parentca9d8d2cb9fc6b9240f2a74ccd36f9d966488294 (diff)
patch 8.2.4692: no test for what 8.2.4691 fixesv8.2.4692
Problem: No test for what 8.2.4691 fixes. Solution: Add a test. Use a more generic sotlution. (closes #10090)
Diffstat (limited to 'src/mouse.c')
-rw-r--r--src/mouse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mouse.c b/src/mouse.c
index b81aff2487..42963341c5 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;