comparison src/move.c @ 752:7a6368b8edf6

updated for version 7.0223
author vimboss
date Mon, 13 Mar 2006 22:10:45 +0000
parents 614e9af68eaa
children e63691e7c504
comparison
equal deleted inserted replaced
751:728d21042b4b 752:7a6368b8edf6
840 if (!(wp->w_valid & VALID_VIRTCOL)) 840 if (!(wp->w_valid & VALID_VIRTCOL))
841 { 841 {
842 getvvcol(wp, &wp->w_cursor, NULL, &(wp->w_virtcol), NULL); 842 getvvcol(wp, &wp->w_cursor, NULL, &(wp->w_virtcol), NULL);
843 wp->w_valid |= VALID_VIRTCOL; 843 wp->w_valid |= VALID_VIRTCOL;
844 #ifdef FEAT_SYN_HL 844 #ifdef FEAT_SYN_HL
845 if (wp->w_p_cuc) 845 if (wp->w_p_cuc
846 # ifdef FEAT_INS_EXPAND
847 && !pum_visible()
848 # endif
849 )
846 redraw_win_later(wp, SOME_VALID); 850 redraw_win_later(wp, SOME_VALID);
847 #endif 851 #endif
848 } 852 }
849 } 853 }
850 854
1202 redraw_later(NOT_VALID); 1206 redraw_later(NOT_VALID);
1203 1207
1204 #ifdef FEAT_SYN_HL 1208 #ifdef FEAT_SYN_HL
1205 /* Redraw when w_virtcol changes and 'cursorcolumn' is set, or when w_row 1209 /* Redraw when w_virtcol changes and 'cursorcolumn' is set, or when w_row
1206 * changes and 'cursorline' is set. */ 1210 * changes and 'cursorline' is set. */
1207 if ((curwin->w_p_cuc && (curwin->w_valid & VALID_VIRTCOL) == 0) 1211 if (((curwin->w_p_cuc && (curwin->w_valid & VALID_VIRTCOL) == 0)
1208 || (curwin->w_p_cul && (curwin->w_valid & VALID_WROW) == 0)) 1212 || (curwin->w_p_cul && (curwin->w_valid & VALID_WROW) == 0))
1213 # ifdef FEAT_INS_EXPAND
1214 && !pum_visible()
1215 # endif
1216 )
1209 redraw_later(SOME_VALID); 1217 redraw_later(SOME_VALID);
1210 #endif 1218 #endif
1211 1219
1212 curwin->w_valid |= VALID_WCOL|VALID_WROW|VALID_VIRTCOL; 1220 curwin->w_valid |= VALID_WCOL|VALID_WROW|VALID_VIRTCOL;
1213 } 1221 }