mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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) {
|
} else if ((int *)varp == &curbuf->b_p_ma) {
|
||||||
// when 'modifiable' is changed, redraw the window title
|
// when 'modifiable' is changed, redraw the window title
|
||||||
redraw_titles();
|
redraw_titles();
|
||||||
} else if ((int *)varp == &curbuf->b_p_eol) {
|
} else if ((int *)varp == &curbuf->b_p_eof
|
||||||
// when 'endofline' is changed, redraw the window title
|
|| (int *)varp == &curbuf->b_p_eol
|
||||||
redraw_titles();
|
|| (int *)varp == &curbuf->b_p_fixeol
|
||||||
} else if ((int *)varp == &curbuf->b_p_fixeol) {
|
|| (int *)varp == &curbuf->b_p_bomb) {
|
||||||
// when 'fixeol' is changed, redraw the window title
|
// redraw the window title and tab page text when 'endoffile', 'endofline',
|
||||||
redraw_titles();
|
// 'fixeol' or 'bomb' is changed
|
||||||
} else if ((int *)varp == &curbuf->b_p_bomb) {
|
|
||||||
// when 'bomb' is changed, redraw the window title and tab page text
|
|
||||||
redraw_titles();
|
redraw_titles();
|
||||||
} else if ((int *)varp == &curbuf->b_p_bin) {
|
} else if ((int *)varp == &curbuf->b_p_bin) {
|
||||||
// when 'bin' is set also set some other options
|
// when 'bin' is set also set some other options
|
||||||
|
Loading…
Reference in New Issue
Block a user