aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-11-11 10:53:23 +0100
committerGitHub <noreply@github.com>2018-11-11 10:53:23 +0100
commitc936ae0f3688d1cf159506d2d9ba3f9be41298a2 (patch)
tree572d3523521c08bb8b0872968a8d31897f1e3623 /src/nvim/message.c
parentf8639dc99cb085432b14da086af316176152bc1f (diff)
parenteb3b73d472798c0b9ff2bde8e0313890b6c42a2e (diff)
downloadrneovim-c936ae0f3688d1cf159506d2d9ba3f9be41298a2.tar.gz
rneovim-c936ae0f3688d1cf159506d2d9ba3f9be41298a2.tar.bz2
rneovim-c936ae0f3688d1cf159506d2d9ba3f9be41298a2.zip
Merge pull request #9193 from bfredl/scrollstuff
UI/TUI: improvements and cleanups for scrolling and clearing
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index edce30e6fa..10f4905fb2 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -1896,6 +1896,9 @@ static void msg_scroll_up(void)
} else {
screen_del_lines(0, 1, (int)Rows, 0, Columns);
}
+ // TODO(bfredl): when msgsep display is properly batched, this fill should be
+ // eliminated.
+ screen_fill(Rows-1, Rows, 0, (int)Columns, ' ', ' ', 0);
}
/*
@@ -2311,6 +2314,7 @@ static int do_more_prompt(int typed_char)
if (toscroll == -1
&& screen_ins_lines(0, 1, (int)Rows, 0, (int)Columns) == OK) {
+ screen_fill(0, 1, 0, (int)Columns, ' ', ' ', 0);
// display line at top
(void)disp_sb_line(0, mp);
} else {