forked from aniani/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().
This commit is contained in:
@@ -1932,7 +1932,9 @@ plain_vgetc(void)
|
|||||||
|
|
||||||
do
|
do
|
||||||
c = safe_vgetc();
|
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);
|
||||||
|
|
||||||
if (c == K_PS)
|
if (c == K_PS)
|
||||||
// Only handle the first pasted character. Drop the rest, since we
|
// Only handle the first pasted character. Drop the rest, since we
|
||||||
|
|||||||
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2833,
|
||||||
/**/
|
/**/
|
||||||
2832,
|
2832,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user