diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/misc1.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index c8d85328d2..6da2a8f786 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -2508,9 +2508,10 @@ int prompt_for_number(int *mouse_used) i = get_number(TRUE, mouse_used); if (KeyTyped) { - /* don't call wait_return() now */ - /* msg_putchar('\n'); */ - cmdline_row = msg_row - 1; + // 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; |