mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
commit
7612dd3f8a
@ -2503,18 +2503,24 @@ 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) {
|
||||
/* don't call wait_return() now */
|
||||
/* msg_putchar('\n'); */
|
||||
cmdline_row = msg_row - 1;
|
||||
need_wait_return = FALSE;
|
||||
msg_didany = FALSE;
|
||||
msg_didout = FALSE;
|
||||
} else
|
||||
// don't call wait_return() now
|
||||
if (msg_row > 0) {
|
||||
cmdline_row = msg_row - 1;
|
||||
}
|
||||
need_wait_return = false;
|
||||
msg_didany = false;
|
||||
msg_didout = false;
|
||||
} else {
|
||||
cmdline_row = save_cmdline_row;
|
||||
}
|
||||
State = save_State;
|
||||
// May need to restore mouse shape.
|
||||
setmouse();
|
||||
|
||||
return i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user