From a539df01f8080e549844e9c38cb1041505bcf1ab Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 1 Aug 2010 14:35:05 +0200 Subject: [PATCH] No need to redraw cursorline when 'modifiable' is changed. (Dominique Pelle) --- src/option.c | 13 ++----------- 1 file 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) { -- 2.50.1