aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-06 00:29:50 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-06 00:31:18 -0400
commit0be0f9895d527f9e05b7cf2309a0a4cb79b19da3 (patch)
tree510a039f4ac81318ced38fa93f325d1c7ac78d02
parentf70ecbd4dc548728d206e9b497cd0cae69189fdf (diff)
downloadrneovim-0be0f9895d527f9e05b7cf2309a0a4cb79b19da3.tar.gz
rneovim-0be0f9895d527f9e05b7cf2309a0a4cb79b19da3.tar.bz2
rneovim-0be0f9895d527f9e05b7cf2309a0a4cb79b19da3.zip
vim-patch:8.2.2832: operator cancelled by moving mouse when using popup
Problem: Operator cancelled by moving mouse when using popup. (Sergey Vlasov) Solution: Do not trigger an operator for a mouse move events. (closes vim/vim#8176) https://github.com/vim/vim/commit/1ad72c8eb601d681c84b47380fc31b6d23602d51
-rw-r--r--src/nvim/normal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 616268fcd1..2f4c441beb 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -880,8 +880,9 @@ static void normal_finish_command(NormalState *s)
s->old_mapped_len = typebuf_maplen();
}
- // If an operation is pending, handle it. But not for K_IGNORE.
- if (s->ca.cmdchar != K_IGNORE) {
+ // If an operation is pending, handle it. But not for K_IGNORE or
+ // K_MOUSEMOVE.
+ if (s->ca.cmdchar != K_IGNORE && s->ca.cmdchar != K_MOUSEMOVE) {
do_pending_operator(&s->ca, s->old_col, false);
}