1
0
forked from aniani/vim

patch 8.0.0956: scrolling in a terminal window has flicker

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.
This commit is contained in:
Bram Moolenaar
2017-08-17 20:31:48 +02:00
parent 82de3c2c03
commit cfce71710b
6 changed files with 227 additions and 198 deletions

View File

@@ -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);