comparison src/move.c @ 14722:9b150311eb9c v8.1.0373

patch 8.1.0373: screen updating still slow when 'cursorline' is set commit https://github.com/vim/vim/commit/1b7fefcbce5dd2fd337e217d4857b941da3f8bed Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 12 22:27:15 2018 +0200 patch 8.1.0373: screen updating still slow when 'cursorline' is set Problem: Screen updating still slow when 'cursorline' is set. Solution: Fix setting last_cursorline.
author Christian Brabandt <cb@256bit.org>
date Wed, 12 Sep 2018 22:30:05 +0200
parents a9665096074b
children 90de24a1e9b7
comparison
equal deleted inserted replaced
14721:9ba31aa02b02 14722:9b150311eb9c
151 // "last_cursorline" may be set for another window, worst case we 151 // "last_cursorline" may be set for another window, worst case we
152 // redraw too much. This is optimized for moving the cursor around 152 // redraw too much. This is optimized for moving the cursor around
153 // in the same window. 153 // in the same window.
154 redrawWinline(wp, last_cursorline, FALSE); 154 redrawWinline(wp, last_cursorline, FALSE);
155 redrawWinline(wp, wp->w_cursor.lnum, FALSE); 155 redrawWinline(wp, wp->w_cursor.lnum, FALSE);
156 last_cursorline = wp->w_cursor.lnum;
157 redraw_win_later(wp, VALID); 156 redraw_win_later(wp, VALID);
158 } 157 }
159 else 158 else
160 #endif 159 #endif
161 redraw_win_later(wp, SOME_VALID); 160 redraw_win_later(wp, SOME_VALID);
161 #ifdef FEAT_SYN_HL
162 last_cursorline = wp->w_cursor.lnum;
163 #endif
162 } 164 }
163 } 165 }
164 166
165 /* 167 /*
166 * Update curwin->w_topline and redraw if necessary. 168 * Update curwin->w_topline and redraw if necessary.