changeset 24588:826ba03d0d22 v8.2.2833

patch 8.2.2833: two key command cancelled by moving mouse when using popup Commit: https://github.com/vim/vim/commit/3a00659db740ebcf0be6153b47a5734eea4a18ba Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 5 19:58:17 2021 +0200 patch 8.2.2833: two key command cancelled by moving mouse when using popup Problem: Two key command cancelled by moving mouse when using popup. (Sergey Vlasov) Solution: Ignore K_MOUSEMOVE in plain_vgetc().
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 May 2021 20:00:07 +0200
parents c41f3377f32f
children c770bde164ea
files src/getchar.c src/version.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1932,7 +1932,9 @@ plain_vgetc(void)
 
     do
 	c = safe_vgetc();
-    while (c == K_IGNORE || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR);
+    while (c == K_IGNORE
+	    || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR
+	    || c == K_MOUSEMOVE);
 
     if (c == K_PS)
 	// Only handle the first pasted character.  Drop the rest, since we
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2833,
+/**/
     2832,
 /**/
     2831,