mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
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)
1ad72c8eb6
This commit is contained in:
parent
f70ecbd4dc
commit
0be0f9895d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user