Skip to content

Commit 845bbb7

Browse files
k-takatabrammool
authored andcommitted
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)
1 parent f8ea106 commit 845bbb7

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

src/option.c

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2833,18 +2833,12 @@ set_bool_option(
28332833
# endif
28342834
redraw_titles();
28352835
}
2836-
// when 'endofline' is changed, redraw the window title
2837-
else if ((int *)varp == &curbuf->b_p_eol)
2838-
{
2839-
redraw_titles();
2840-
}
2841-
// when 'fixeol' is changed, redraw the window title
2842-
else if ((int *)varp == &curbuf->b_p_fixeol)
2843-
{
2844-
redraw_titles();
2845-
}
2846-
// when 'bomb' is changed, redraw the window title and tab page text
2847-
else if ((int *)varp == &curbuf->b_p_bomb)
2836+
// redraw the window title and tab page text when 'endoffile', 'endofline',
2837+
// 'fixeol' or 'bomb' is changed
2838+
else if ((int *)varp == &curbuf->b_p_eof
2839+
|| (int *)varp == &curbuf->b_p_eol
2840+
|| (int *)varp == &curbuf->b_p_fixeol
2841+
|| (int *)varp == &curbuf->b_p_bomb)
28482842
{
28492843
redraw_titles();
28502844
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
835,
698700
/**/
699701
834,
700702
/**/

0 commit comments

Comments
 (0)