summaryrefslogtreecommitdiff
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-05-05 19:58:17 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-05 19:58:17 +0200
commit3a00659db740ebcf0be6153b47a5734eea4a18ba (patch)
tree864fd389b1a16774740ffe006372f5d30f70ea74 /src/getchar.c
parent1ad72c8eb601d681c84b47380fc31b6d23602d51 (diff)
downloadvim-git-3a00659db740ebcf0be6153b47a5734eea4a18ba.tar.gz
patch 8.2.2833: two key command cancelled by moving mouse when using popupv8.2.2833
Problem: Two key command cancelled by moving mouse when using popup. (Sergey Vlasov) Solution: Ignore K_MOUSEMOVE in plain_vgetc().
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index cf2711bcd..185b73bdb 100644
--- 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