summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2022-11-05 18:31:19 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-05 18:31:19 +0000
commit845bbb72ed2da4b5fb2a503d91cfd6435df2f584 (patch)
tree092f3ef28d1c5b2f07dde0f09bdb55dee8609faa
parentf8ea10677d007befbb6f24cd20f35c3bf71c1296 (diff)
downloadvim-git-845bbb72ed2da4b5fb2a503d91cfd6435df2f584.tar.gz
patch 9.0.0835: the window title is not redrawn when 'endoffile' changesv9.0.0835
Problem: The window title is not redrawn when 'endoffile' changes. Solution: redraw the window title when 'endoffile' is changed. (Ken Takata, closes #11488)
-rw-r--r--src/option.c18
-rw-r--r--src/version.c2
2 files changed, 8 insertions, 12 deletions
diff --git a/src/option.c b/src/option.c
index 87764e231..92175ef70 100644
--- a/src/option.c
+++ b/src/option.c
@@ -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();
}
diff --git a/src/version.c b/src/version.c
index 9a8928cb9..755cd09d5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 835,
+/**/
834,
/**/
833,