summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-01 14:35:05 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-01 14:35:05 +0200
commita539df01f8080e549844e9c38cb1041505bcf1ab (patch)
tree2c6ed51471c16df384148be90660ca084a258c0f /src/option.c
parentd1cb65e44031e2e079463a388a10af615b2a0408 (diff)
downloadvim-git-a539df01f8080e549844e9c38cb1041505bcf1ab.tar.gz
No need to redraw cursorline when 'modifiable' is changed. (Dominique Pelle)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/option.c b/src/option.c
index 06e569ca4..fc384536a 100644
--- a/src/option.c
+++ b/src/option.c
@@ -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)
{