summaryrefslogtreecommitdiffstats
path: root/src/move.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-12 21:56:11 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-12 21:56:11 +0000
commit2b48ad5cd705167ed9c467f01dceeaf7ff432675 (patch)
treea905534444c10d7aae4d74bb13ab810621619bad /src/move.c
parent5baddf0285f43f6b2c8ebb4807541df26f91285d (diff)
updated for version 7.0222
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/move.c b/src/move.c
index c8a5a23216..dca4f2666b 100644
--- a/src/move.c
+++ b/src/move.c
@@ -360,7 +360,7 @@ update_topline()
)
{
dollar_vcol = 0;
- if (curwin->w_skipcol)
+ if (curwin->w_skipcol != 0)
{
curwin->w_skipcol = 0;
redraw_later(NOT_VALID);
@@ -841,6 +841,10 @@ validate_virtcol_win(wp)
{
getvvcol(wp, &wp->w_cursor, NULL, &(wp->w_virtcol), NULL);
wp->w_valid |= VALID_VIRTCOL;
+#ifdef FEAT_SYN_HL
+ if (wp->w_p_cuc)
+ redraw_win_later(wp, SOME_VALID);
+#endif
}
}
@@ -1197,6 +1201,14 @@ curs_columns(scroll)
if (prev_skipcol != curwin->w_skipcol)
redraw_later(NOT_VALID);
+#ifdef FEAT_SYN_HL
+ /* Redraw when w_virtcol changes and 'cursorcolumn' is set, or when w_row
+ * changes and 'cursorline' is set. */
+ if ((curwin->w_p_cuc && (curwin->w_valid & VALID_VIRTCOL) == 0)
+ || (curwin->w_p_cul && (curwin->w_valid & VALID_WROW) == 0))
+ redraw_later(SOME_VALID);
+#endif
+
curwin->w_valid |= VALID_WCOL|VALID_WROW|VALID_VIRTCOL;
}