aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-01-18 07:14:12 +0800
committerGitHub <noreply@github.com>2024-01-18 07:14:12 +0800
commit780dd88b68b7a4d97c8b7ec6a8d33ab523ab04dd (patch)
tree6d50492bb8e1f6110661edaa14b570ebb0f5b05c /src/nvim/option.c
parent5aa14e1231b7eccfbc54cba8f20d54105212847d (diff)
downloadrneovim-780dd88b68b7a4d97c8b7ec6a8d33ab523ab04dd.tar.gz
rneovim-780dd88b68b7a4d97c8b7ec6a8d33ab523ab04dd.tar.bz2
rneovim-780dd88b68b7a4d97c8b7ec6a8d33ab523ab04dd.zip
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 https://github.com/vim/vim/commit/6a8d2e1634f8f0d7463a2786dbcbe0f38dd287a7 Co-authored-by: Cole Frankenhoff <cole.nhf@gmail.com>
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 68ddb95e38..0185b62daa 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -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);