From: Bram Moolenaar Date: Sun, 1 Aug 2010 12:35:05 +0000 (+0200) Subject: No need to redraw cursorline when 'modifiable' is changed. (Dominique Pelle) X-Git-Tag: v7.3~120 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a539df01f8080e549844e9c38cb1041505bcf1ab;p=vim No need to redraw cursorline when 'modifiable' is changed. (Dominique Pelle) --- 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) {