Mercurial > vim
comparison src/move.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 | 84f71a8a5f2c |
children | 68d7bc045dbe |
comparison
equal
deleted
inserted
replaced
12151:dcab6d218e96 | 12152:69af108df70e |
---|---|
1161 | 1161 |
1162 extra = ((int)prev_skipcol - (int)curwin->w_skipcol) / width; | 1162 extra = ((int)prev_skipcol - (int)curwin->w_skipcol) / width; |
1163 if (extra > 0) | 1163 if (extra > 0) |
1164 win_ins_lines(curwin, 0, extra, FALSE, FALSE); | 1164 win_ins_lines(curwin, 0, extra, FALSE, FALSE); |
1165 else if (extra < 0) | 1165 else if (extra < 0) |
1166 win_del_lines(curwin, 0, -extra, FALSE, FALSE); | 1166 win_del_lines(curwin, 0, -extra, FALSE, FALSE, 0); |
1167 } | 1167 } |
1168 else | 1168 else |
1169 curwin->w_skipcol = 0; | 1169 curwin->w_skipcol = 0; |
1170 if (prev_skipcol != curwin->w_skipcol) | 1170 if (prev_skipcol != curwin->w_skipcol) |
1171 redraw_later(NOT_VALID); | 1171 redraw_later(NOT_VALID); |