1
0
forked from aniani/vim

patch 9.0.0835: the window title is not redrawn when 'endoffile' changes

Problem:    The window title is not redrawn when 'endoffile' changes.
Solution:   redraw the window title when 'endoffile' is changed. (Ken Takata,
            closes #11488)
This commit is contained in:
K.Takata
2022-11-05 18:31:19 +00:00
committed by Bram Moolenaar
parent f8ea10677d
commit 845bbb72ed
2 changed files with 8 additions and 12 deletions

View File

@@ -2833,18 +2833,12 @@ set_bool_option(
# endif
redraw_titles();
}
// when 'endofline' is changed, redraw the window title
else if ((int *)varp == &curbuf->b_p_eol)
{
redraw_titles();
}
// when 'fixeol' is changed, redraw the window title
else if ((int *)varp == &curbuf->b_p_fixeol)
{
redraw_titles();
}
// when 'bomb' is changed, redraw the window title and tab page text
else if ((int *)varp == &curbuf->b_p_bomb)
// redraw the window title and tab page text when 'endoffile', 'endofline',
// 'fixeol' or 'bomb' is changed
else if ((int *)varp == &curbuf->b_p_eof
|| (int *)varp == &curbuf->b_p_eol
|| (int *)varp == &curbuf->b_p_fixeol
|| (int *)varp == &curbuf->b_p_bomb)
{
redraw_titles();
}