Skip to content

Commit

Permalink
patch 8.0.1756: GUI: after prompting for a number the mouse shape is …
Browse files Browse the repository at this point in the history
…wrong

Problem:    GUI: after prompting for a number the mouse shape is sometimes
            wrong.
Solution:   Call setmouse() after setting "State". (Hirohito Higashi,
            closes #2709)
  • Loading branch information
brammool committed Apr 24, 2018
1 parent f1f2f83 commit 7365831
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/misc1.c
Expand Up @@ -3594,6 +3594,11 @@ prompt_for_number(int *mouse_used)
cmdline_row = 0;
save_State = State;
State = ASKMORE; /* prevents a screen update when using a timer */
#ifdef FEAT_MOUSE
/* May show different mouse shape. */
setmouse();
#endif


i = get_number(TRUE, mouse_used);
if (KeyTyped)
Expand All @@ -3608,6 +3613,10 @@ prompt_for_number(int *mouse_used)
else
cmdline_row = save_cmdline_row;
State = save_State;
#ifdef FEAT_MOUSE
/* May need to restore mouse shape. */
setmouse();
#endif

return i;
}
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -761,6 +761,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1756,
/**/
1755,
/**/
Expand Down

0 comments on commit 7365831

Please sign in to comment.