mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
refactor(options): use schar_T representation for fillchars and listchars
A bit big, but practically it was a lot simpler to change over all fillchars and all listchars at once, to not need to maintain two parallel implementations. This is mostly an internal refactor, but it also removes an arbitrary limitation: that 'fillchars' and 'listchars' values can only be single-codepoint characters. Now any character which fits into a single screen cell can be used.
This commit is contained in:
@@ -1696,10 +1696,10 @@ static void didset_options2(void)
|
||||
highlight_changed();
|
||||
|
||||
// Parse default for 'fillchars'.
|
||||
set_fillchars_option(curwin, curwin->w_p_fcs, true);
|
||||
set_chars_option(curwin, curwin->w_p_fcs, kFillchars, true);
|
||||
|
||||
// Parse default for 'listchars'.
|
||||
set_listchars_option(curwin, curwin->w_p_lcs, true);
|
||||
set_chars_option(curwin, curwin->w_p_lcs, kListchars, true);
|
||||
|
||||
// Parse default for 'wildmode'.
|
||||
check_opt_wim();
|
||||
@@ -4991,8 +4991,8 @@ void didset_window_options(win_T *wp, bool valid_cursor)
|
||||
check_colorcolumn(wp);
|
||||
briopt_check(wp);
|
||||
fill_culopt_flags(NULL, wp);
|
||||
set_fillchars_option(wp, wp->w_p_fcs, true);
|
||||
set_listchars_option(wp, wp->w_p_lcs, true);
|
||||
set_chars_option(wp, wp->w_p_fcs, kFillchars, true);
|
||||
set_chars_option(wp, wp->w_p_lcs, kListchars, true);
|
||||
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