vim-patch:9.0.0036: 'fillchars' cannot have window-local values

Problem:    'fillchars' cannot have window-local values.
Solution:   Make 'fillchars' global-local. (closes vim/vim#5206)
96ba25ac01

Cherry-pick g:run_nr from patch 8.2.0454.

N/A patches for version.c:

vim-patch:9.0.0037: build error

Problem:    Build error.
Solution:   Add missing change.
510f03738d
This commit is contained in:
zeertzjq
2022-08-26 08:25:36 +08:00
parent 1ba3d5c712
commit fa1c761d62
10 changed files with 109 additions and 67 deletions

View File

@@ -960,7 +960,9 @@ char *did_set_string_option(int opt_idx, char_u **varp, char_u *oldval, char *er
FOR_ALL_TAB_WINDOWS(tp, wp) {
// If no error was returned above, we don't expect an error
// here, so ignore the return value.
(void)set_chars_option(wp, (char_u **)&wp->w_p_lcs, true);
if (*wp->w_p_lcs == NUL) {
(void)set_chars_option(wp, (char_u **)&wp->w_p_lcs, true);
}
}
redraw_all_later(UPD_NOT_VALID);
}
@@ -977,7 +979,9 @@ char *did_set_string_option(int opt_idx, char_u **varp, char_u *oldval, char *er
FOR_ALL_TAB_WINDOWS(tp, wp) {
// If no error was returned above, we don't expect an error
// here, so ignore the return value.
(void)set_chars_option(wp, (char_u **)&wp->w_p_fcs, true);
if (*wp->w_p_fcs == NUL) {
(void)set_chars_option(wp, (char_u **)&wp->w_p_fcs, true);
}
}
redraw_all_later(UPD_NOT_VALID);
}