diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-09 16:00:09 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-09 16:02:35 -0400 |
commit | 1ce28d7d9b2fd0e6a81174769e30dc59ded93876 (patch) | |
tree | 9a1f04d10e11dd55f71ce7534030ef50684fbc05 /src | |
parent | 6c96c3b3f523bc6f65747d8ea45dc955d7fcef5a (diff) | |
download | rneovim-1ce28d7d9b2fd0e6a81174769e30dc59ded93876.tar.gz rneovim-1ce28d7d9b2fd0e6a81174769e30dc59ded93876.tar.bz2 rneovim-1ce28d7d9b2fd0e6a81174769e30dc59ded93876.zip |
vim-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 vim/vim#2709)
https://github.com/vim/vim/commit/73658317bacd9a0264dfaa32288de6ea1f236fe5
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/misc1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 45e03681eb..c8d85328d2 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -2503,6 +2503,8 @@ int prompt_for_number(int *mouse_used) cmdline_row = 0; save_State = State; State = ASKMORE; // prevents a screen update when using a timer + // May show different mouse shape. + setmouse(); i = get_number(TRUE, mouse_used); if (KeyTyped) { @@ -2515,6 +2517,8 @@ int prompt_for_number(int *mouse_used) } else cmdline_row = save_cmdline_row; State = save_State; + // May need to restore mouse shape. + setmouse(); return i; } |