Skip to content

Commit 7365831

Browse files
committed
patch 8.0.1756: GUI: after prompting for a number the mouse shape is wrong
Problem: GUI: after prompting for a number the mouse shape is sometimes wrong. Solution: Call setmouse() after setting "State". (Hirohito Higashi, closes #2709)
1 parent f1f2f83 commit 7365831

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/misc1.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3594,6 +3594,11 @@ prompt_for_number(int *mouse_used)
35943594
cmdline_row = 0;
35953595
save_State = State;
35963596
State = ASKMORE; /* prevents a screen update when using a timer */
3597+
#ifdef FEAT_MOUSE
3598+
/* May show different mouse shape. */
3599+
setmouse();
3600+
#endif
3601+
35973602

35983603
i = get_number(TRUE, mouse_used);
35993604
if (KeyTyped)
@@ -3608,6 +3613,10 @@ prompt_for_number(int *mouse_used)
36083613
else
36093614
cmdline_row = save_cmdline_row;
36103615
State = save_State;
3616+
#ifdef FEAT_MOUSE
3617+
/* May need to restore mouse shape. */
3618+
setmouse();
3619+
#endif
36113620

36123621
return i;
36133622
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1756,
764766
/**/
765767
1755,
766768
/**/

0 commit comments

Comments
 (0)