mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
vim-patch:9.0.0835: the window title is not redrawn when 'endoffile' changes (#20951)
Problem: The window title is not redrawn when 'endoffile' changes.
Solution: redraw the window title when 'endoffile' is changed. (Ken Takata,
closes vim/vim#11488)
845bbb72ed
Co-authored-by: K.Takata <kentkt@csc.jp>
This commit is contained in:
parent
27ff59fb07
commit
83ea9e23a2
@ -1975,14 +1975,12 @@ static char *set_bool_option(const int opt_idx, char_u *const varp, const int va
|
||||
} else if ((int *)varp == &curbuf->b_p_ma) {
|
||||
// when 'modifiable' is changed, redraw the window title
|
||||
redraw_titles();
|
||||
} else if ((int *)varp == &curbuf->b_p_eol) {
|
||||
// when 'endofline' is changed, redraw the window title
|
||||
redraw_titles();
|
||||
} else if ((int *)varp == &curbuf->b_p_fixeol) {
|
||||
// when 'fixeol' is changed, redraw the window title
|
||||
redraw_titles();
|
||||
} else if ((int *)varp == &curbuf->b_p_bomb) {
|
||||
// when 'bomb' is changed, redraw the window title and tab page text
|
||||
} 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 the window title and tab page text when 'endoffile', 'endofline',
|
||||
// 'fixeol' or 'bomb' is changed
|
||||
redraw_titles();
|
||||
} else if ((int *)varp == &curbuf->b_p_bin) {
|
||||
// when 'bin' is set also set some other options
|
||||
|
Loading…
Reference in New Issue
Block a user