]> granicus.if.org Git - vim/commitdiff
No need to redraw cursorline when 'modifiable' is changed. (Dominique Pelle)
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Aug 2010 12:35:05 +0000 (14:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Aug 2010 12:35:05 +0000 (14:35 +0200)
src/option.c

index 06e569ca45d9ec0f15f7ff509444065fa70004b4..fc384536a7373df765fe1afb6034d1bc79f3387b 100644 (file)
@@ -7516,21 +7516,12 @@ set_bool_option(opt_idx, varp, value, opt_flags)
     }
 #endif
 
-#if defined(FEAT_TITLE) || defined(FEAT_CONCEAL)
-    /* when 'modifiable' is changed, redraw the window title and
-     * update current line for concealable items */
+#ifdef FEAT_TITLE
+    /* when 'modifiable' is changed, redraw the window title */
     else if ((int *)varp == &curbuf->b_p_ma)
     {
-# ifdef FEAT_TITLE
        redraw_titles();
-# endif
-# ifdef FEAT_CONCEAL
-       if (curwin->w_p_cole > 0)
-           update_single_line(curwin, curwin->w_cursor.lnum);
-# endif
     }
-#endif
-#ifdef FEAT_TITLE
     /* when 'endofline' is changed, redraw the window title */
     else if ((int *)varp == &curbuf->b_p_eol)
     {