Mercurial > vim
comparison src/message.c @ 12152:69af108df70e v8.0.0956
patch 8.0.0956: scrolling in a terminal window has flicker
commit https://github.com/vim/vim/commit/cfce71710b6a2e1fb7f7f27d2a359e4b926f3af9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 17 20:31:48 2017 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 17 Aug 2017 20:45:04 +0200 |
parents | 7e704d75a882 |
children | ab0d827151a1 |
comparison
equal
deleted
inserted
replaced
12151:dcab6d218e96 | 12152:69af108df70e |
---|---|
2311 * to become invalid. */ | 2311 * to become invalid. */ |
2312 if (gui.in_use) | 2312 if (gui.in_use) |
2313 gui_undraw_cursor(); | 2313 gui_undraw_cursor(); |
2314 #endif | 2314 #endif |
2315 /* scrolling up always works */ | 2315 /* scrolling up always works */ |
2316 screen_del_lines(0, 0, 1, (int)Rows, TRUE, NULL); | 2316 screen_del_lines(0, 0, 1, (int)Rows, TRUE, 0, NULL); |
2317 | 2317 |
2318 if (!can_clear((char_u *)" ")) | 2318 if (!can_clear((char_u *)" ")) |
2319 { | 2319 { |
2320 /* Scrolling up doesn't result in the right background. Set the | 2320 /* Scrolling up doesn't result in the right background. Set the |
2321 * background here. It's not efficient, but avoids that we have to do | 2321 * background here. It's not efficient, but avoids that we have to do |
2903 else | 2903 else |
2904 mp_last = msg_sb_start(mp_last->sb_prev); | 2904 mp_last = msg_sb_start(mp_last->sb_prev); |
2905 } | 2905 } |
2906 | 2906 |
2907 if (toscroll == -1 && screen_ins_lines(0, 0, 1, | 2907 if (toscroll == -1 && screen_ins_lines(0, 0, 1, |
2908 (int)Rows, NULL) == OK) | 2908 (int)Rows, 0, NULL) == OK) |
2909 { | 2909 { |
2910 /* display line at top */ | 2910 /* display line at top */ |
2911 (void)disp_sb_line(0, mp); | 2911 (void)disp_sb_line(0, mp); |
2912 } | 2912 } |
2913 else | 2913 else |