changeset 2452:a8a010cdd71b vim73

No need to redraw cursorline when 'modifiable' is changed. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Sun, 01 Aug 2010 14:35:05 +0200
parents 0b8612c2814d
children 1cd1c68045a2
files src/option.c
diffstat 1 files changed, 3 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/option.c
+++ b/src/option.c
@@ -7516,21 +7516,12 @@ set_bool_option(opt_idx, varp, value, op
     }
 #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)
     {