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:
Jan Edmund Lazo 2021-05-06 00:29:50 -04:00
parent f70ecbd4dc
commit 0be0f9895d
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -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);
}