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().
3a00659db7
This commit is contained in:
Jan Edmund Lazo
2021-05-06 00:31:32 -04:00
parent 0be0f9895d
commit de299724cd

View File

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