File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2044,10 +2044,12 @@ f_getchar(typval_T *argvars, typval_T *rettv)
20442044 // illegal argument or getchar(0) and no char avail: return zero
20452045 n = 0 ;
20462046 else
2047- // getchar(0) and char avail: return char
2048- n = plain_vgetc ();
2047+ // getchar(0) and char avail() != NUL: get a character.
2048+ // Note that vpeekc_any() returns K_SPECIAL for K_IGNORE.
2049+ n = safe_vgetc ();
20492050
2050- if (n == K_IGNORE || n == K_MOUSEMOVE )
2051+ if (n == K_IGNORE || n == K_MOUSEMOVE
2052+ || n == K_VER_SCROLLBAR || n == K_HOR_SCROLLBAR )
20512053 continue ;
20522054 break ;
20532055 }
Original file line number Diff line number Diff line change @@ -754,6 +754,8 @@ static char *(features[]) =
754754
755755static int included_patches [] =
756756{ /* Add new patch number below this line */
757+ /**/
758+ 1608 ,
757759/**/
758760 1607 ,
759761/**/
You can’t perform that action at this time.
0 commit comments