summaryrefslogtreecommitdiff
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-17 20:31:48 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-17 20:31:48 +0200
commitcfce71710b6a2e1fb7f7f27d2a359e4b926f3af9 (patch)
treee9f5fa03d3b04268324bde07d5e87bb3de026369 /src/message.c
parent82de3c2c036bc89c2d9bdea236e0a7f1208a5571 (diff)
downloadvim-git-cfce71710b6a2e1fb7f7f27d2a359e4b926f3af9.tar.gz
patch 8.0.0956: scrolling in a terminal window has flickerv8.0.0956
Problem: Scrolling in a terminal hwindow as flicker when the Normal background differs from the terminal window background. Solution: Set the attribute to clear with.
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c
index 62e6bfe1e..57f33dd87 100644
--- a/src/message.c
+++ b/src/message.c
@@ -2313,7 +2313,7 @@ msg_scroll_up(void)
gui_undraw_cursor();
#endif
/* scrolling up always works */
- screen_del_lines(0, 0, 1, (int)Rows, TRUE, NULL);
+ screen_del_lines(0, 0, 1, (int)Rows, TRUE, 0, NULL);
if (!can_clear((char_u *)" "))
{
@@ -2905,7 +2905,7 @@ do_more_prompt(int typed_char)
}
if (toscroll == -1 && screen_ins_lines(0, 0, 1,
- (int)Rows, NULL) == OK)
+ (int)Rows, 0, NULL) == OK)
{
/* display line at top */
(void)disp_sb_line(0, mp);