]> granicus.if.org Git - vim/commitdiff
updated for version 7.0222
authorBram Moolenaar <Bram@vim.org>
Sun, 12 Mar 2006 21:56:11 +0000 (21:56 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 12 Mar 2006 21:56:11 +0000 (21:56 +0000)
src/feature.h
src/mbyte.c
src/move.c

index 7231b96bf7b8bc90d4e864f28b7618f02a396e28..50979f04c8ef6365530ae994d664de29e866bf9c 100644 (file)
 # define FEAT_SYN_HL
 #endif
 
+/*
+ * +spell              spell checking
+ */
+#if defined(FEAT_NORMAL) || defined(PROTO)
+# define FEAT_SPELL
+#endif
+
 /*
  * +builtin_terms      Choose one out of the following four:
  *
index 4cd7e96fa921d460a268dfb7a0684ab735db77dd..a27649ad2fbb1cfc9a2190ac1694fe2292059293 100644 (file)
@@ -754,7 +754,7 @@ codepage_invalid:
     apply_autocmds(EVENT_ENCODINGCHANGED, NULL, (char_u *)"", FALSE, curbuf);
 #endif
 
-#ifdef FEAT_SYN_HL
+#ifdef FEAT_SPELL
     /* Need to reload spell dictionaries */
     spell_reload();
 #endif
@@ -2722,7 +2722,7 @@ mb_charlen(str)
     return count;
 }
 
-#if defined(FEAT_SYN_HL) || defined(PROTO)
+#if defined(FEAT_SPELL) || defined(PROTO)
 /*
  * Like mb_charlen() but for a string with specified length.
  */
index c8a5a23216661f83a2ec1f90c1d3fd063eeaaf14..dca4f2666b717dc6b44b8d5e3c9b74fb7c7eeaab 100644 (file)
@@ -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;
 }