]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0835: the window title is not redrawn when 'endoffile' changes v9.0.0835
authorK.Takata <kentkt@csc.jp>
Sat, 5 Nov 2022 18:31:19 +0000 (18:31 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 5 Nov 2022 18:31:19 +0000 (18:31 +0000)
Problem:    The window title is not redrawn when 'endoffile' changes.
Solution:   redraw the window title when 'endoffile' is changed. (Ken Takata,
            closes #11488)

src/option.c
src/version.c

index 87764e231544b33a327d2b45a458be8ed60666ef..92175ef70ed962bfb9d47d9fe3474d7e5aeca81f 100644 (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();
     }
index 9a8928cb94e265bfd68dd67274777e744df471f3..755cd09d5d2b4875779c7eb91c27035694cefa5d 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    835,
 /**/
     834,
 /**/