# HG changeset patch # User Bram Moolenaar # Date 1667673903 -3600 # Node ID 2a1a4a13b3960cd69906be8b8ba480b41f119555 # Parent 9dc9ae5c721dd8d05275fea001b21d6d1ed22f87 patch 9.0.0835: the window title is not redrawn when 'endoffile' changes Commit: https://github.com/vim/vim/commit/845bbb72ed2da4b5fb2a503d91cfd6435df2f584 Author: K.Takata Date: Sat Nov 5 18:31:19 2022 +0000 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) diff --git a/src/option.c b/src/option.c --- 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 --- 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,