comparison src/move.c @ 15414:d7432dcb6b7c v8.1.0715

patch 8.1.0715: superfluous call to redraw_win_later() commit https://github.com/vim/vim/commit/6f7e555f7440df148350468ad8bc6d559d676d7c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 11 11:55:16 2019 +0100 patch 8.1.0715: superfluous call to redraw_win_later() Problem: Superfluous call to redraw_win_later(). Solution: Remove the call.
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Jan 2019 12:00:10 +0100
parents ac5542aadd9c
children 536dd2bc5ac9
comparison
equal deleted inserted replaced
15413:aeee555c8b0d 15414:d7432dcb6b7c
135 #ifdef FEAT_SYN_HL 135 #ifdef FEAT_SYN_HL
136 || wp->w_p_cul 136 || wp->w_p_cul
137 #endif 137 #endif
138 ) 138 )
139 && (wp->w_valid & VALID_CROW) == 0 139 && (wp->w_valid & VALID_CROW) == 0
140 # ifdef FEAT_INS_EXPAND 140 #ifdef FEAT_INS_EXPAND
141 && !pum_visible() 141 && !pum_visible()
142 # endif 142 #endif
143 ) 143 )
144 { 144 {
145 if (wp->w_p_rnu) 145 if (wp->w_p_rnu)
146 // win_line() will redraw the number column only. 146 // win_line() will redraw the number column only.
147 redraw_win_later(wp, VALID); 147 redraw_win_later(wp, VALID);
153 // "w_last_cursorline" may be outdated, worst case we redraw 153 // "w_last_cursorline" may be outdated, worst case we redraw
154 // too much. This is optimized for moving the cursor around in 154 // too much. This is optimized for moving the cursor around in
155 // the current window. 155 // the current window.
156 redrawWinline(wp, wp->w_last_cursorline); 156 redrawWinline(wp, wp->w_last_cursorline);
157 redrawWinline(wp, wp->w_cursor.lnum); 157 redrawWinline(wp, wp->w_cursor.lnum);
158 redraw_win_later(wp, VALID);
159 } 158 }
160 else 159 else
161 redraw_win_later(wp, SOME_VALID); 160 redraw_win_later(wp, SOME_VALID);
162 wp->w_last_cursorline = wp->w_cursor.lnum; 161 wp->w_last_cursorline = wp->w_cursor.lnum;
163 } 162 }