changeset 13768:bcef80912112 v8.0.1756

patch 8.0.1756: GUI: after prompting for a number the mouse shape is wrong commit https://github.com/vim/vim/commit/73658317bacd9a0264dfaa32288de6ea1f236fe5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 24 17:41:57 2018 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Tue, 24 Apr 2018 17:45:08 +0200
parents 02617aff148e
children 804c3b21ce59
files src/misc1.c src/version.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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)
@@ -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;
 }
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1756,
+/**/
     1755,
 /**/
     1754,