diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-06 00:31:32 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-06 00:32:35 -0400 |
commit | de299724cddaf928260986dfd6d74fdc18f219b6 (patch) | |
tree | 09b351f0cdab69b81d0db5cb9aed0ad9ba6b6181 /src/nvim/getchar.c | |
parent | 0be0f9895d527f9e05b7cf2309a0a4cb79b19da3 (diff) | |
download | rneovim-de299724cddaf928260986dfd6d74fdc18f219b6.tar.gz rneovim-de299724cddaf928260986dfd6d74fdc18f219b6.tar.bz2 rneovim-de299724cddaf928260986dfd6d74fdc18f219b6.zip |
vim-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().
https://github.com/vim/vim/commit/3a00659db740ebcf0be6153b47a5734eea4a18ba
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index a0fa80f1e5..5c2eed363e 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1586,7 +1586,9 @@ int 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); return c; } |