mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
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)
73658317ba
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user