From 9c449728175fda3413377fd92e3ce0f288f35e6f Mon Sep 17 00:00:00 2001
From: Bram Moolenaar <Bram@vim.org>
Date: Tue, 20 Jul 2010 18:44:27 +0200
Subject: [PATCH] When resetting 'mousehide' show the mouse pointer right away.

---
 src/option.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/option.c b/src/option.c
index 63c0f2efb5..f16c4ba44f 100644
--- a/src/option.c
+++ b/src/option.c
@@ -7488,6 +7488,14 @@ set_bool_option(opt_idx, varp, value, opt_flags)
 #endif
     }
 
+#ifdef FEAT_GUI
+    else if ((int *)varp == &p_mh)
+    {
+	if (!p_mh)
+	    gui_mch_mousehide(FALSE);
+    }
+#endif
+
 #if defined(FEAT_TITLE) || defined(FEAT_CONCEAL)
     /* when 'modifiable' is changed, redraw the window title and
      * update current line for concealable items */
-- 
GitLab