aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-06-06 00:34:08 +0200
committerGitHub <noreply@github.com>2018-06-06 00:34:08 +0200
commit5861dc596687b48e5817f944cdcffca50592fb38 (patch)
tree8777a300d7f84612932ca3f5efc689968f32ac49 /src
parent078202d6f8b4f7312e88790ea0af0b67bf300951 (diff)
parent37e00c6e656435c8b58d442aa5853c94a76cabca (diff)
downloadrneovim-5861dc596687b48e5817f944cdcffca50592fb38.tar.gz
rneovim-5861dc596687b48e5817f944cdcffca50592fb38.tar.bz2
rneovim-5861dc596687b48e5817f944cdcffca50592fb38.zip
Merge #8461 from bfredl/scrollstatus
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_getln.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index f62b0a2060..3eb66cd2dc 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -295,10 +295,7 @@ static uint8_t *command_line_enter(int firstc, long count, int indent)
redir_off = true; // don't redirect the typed command
if (!cmd_silent) {
- s->i = msg_scrolled;
- msg_scrolled = 0; // avoid wait_return message
gotocmdline(true);
- msg_scrolled += s->i;
redrawcmdprompt(); // draw prompt or indent
set_cmdspos();
}
@@ -349,7 +346,7 @@ static uint8_t *command_line_enter(int firstc, long count, int indent)
// redraw the statusline for statuslines that display the current mode
// using the mode() function.
- if (KeyTyped) {
+ if (KeyTyped && msg_scrolled == 0) {
curwin->w_redr_status = true;
redraw_statuslines();
}