mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1166: once mouse move events are enabled getchar() returns them
Problem: Once mouse move events are enabled getchar() returns them. Solution: Ignore K_MOUSEMOVE in getchar(). (closes #6424)
This commit is contained in:
@@ -1501,7 +1501,7 @@ openscript(
|
||||
{
|
||||
update_topline_cursor(); // update cursor position and topline
|
||||
normal_cmd(&oa, FALSE); // execute one command
|
||||
vpeekc(); // check for end of file
|
||||
(void)vpeekc(); // check for end of file
|
||||
}
|
||||
while (scriptin[oldcurscript] != NULL);
|
||||
|
||||
@@ -2045,7 +2045,7 @@ f_getchar(typval_T *argvars, typval_T *rettv)
|
||||
// getchar(0) and char avail: return char
|
||||
n = plain_vgetc();
|
||||
|
||||
if (n == K_IGNORE)
|
||||
if (n == K_IGNORE || n == K_MOUSEMOVE)
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user