0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

No need to redraw cursorline when 'modifiable' is changed. (Dominique Pelle)

This commit is contained in:
Bram Moolenaar 2010-08-01 14:35:05 +02:00
parent d1cb65e440
commit a539df01f8

View 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)
{