mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
vim-patch:9.1.0039: too vague errors for 'listchars'/'fillchars' (#27070)
Problem: too vague errors for 'listchars'/'fillchars'
Solution: Include the field name in error message.
(zeertzjq)
related: #27050
closes: vim/vim#13877
6a8d2e1634
Co-authored-by: Cole Frankenhoff <cole.nhf@gmail.com>
This commit is contained in:
@@ -1703,10 +1703,10 @@ static void didset_options2(void)
|
||||
highlight_changed();
|
||||
|
||||
// Parse default for 'fillchars'.
|
||||
set_chars_option(curwin, curwin->w_p_fcs, kFillchars, true);
|
||||
set_chars_option(curwin, curwin->w_p_fcs, kFillchars, true, NULL, 0);
|
||||
|
||||
// Parse default for 'listchars'.
|
||||
set_chars_option(curwin, curwin->w_p_lcs, kListchars, true);
|
||||
set_chars_option(curwin, curwin->w_p_lcs, kListchars, true, NULL, 0);
|
||||
|
||||
// Parse default for 'wildmode'.
|
||||
check_opt_wim();
|
||||
@@ -4998,8 +4998,8 @@ void didset_window_options(win_T *wp, bool valid_cursor)
|
||||
check_colorcolumn(wp);
|
||||
briopt_check(wp);
|
||||
fill_culopt_flags(NULL, wp);
|
||||
set_chars_option(wp, wp->w_p_fcs, kFillchars, true);
|
||||
set_chars_option(wp, wp->w_p_lcs, kListchars, true);
|
||||
set_chars_option(wp, wp->w_p_fcs, kFillchars, true, NULL, 0);
|
||||
set_chars_option(wp, wp->w_p_lcs, kListchars, true, NULL, 0);
|
||||
parse_winhl_opt(wp); // sets w_hl_needs_update also for w_p_winbl
|
||||
check_blending(wp);
|
||||
set_winbar_win(wp, false, valid_cursor);
|
||||
|
Reference in New Issue
Block a user