Mercurial > vim
comparison src/option.c @ 34157:e7d64a3fffe4 v9.1.0039
patch 9.1.0039: too vague errors for 'listchars'/'fillchars'
Commit: https://github.com/vim/vim/commit/6a8d2e1634f8f0d7463a2786dbcbe0f38dd287a7
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Jan 17 20:54:49 2024 +0100
patch 9.1.0039: too vague errors for 'listchars'/'fillchars'
Problem: too vague errors for 'listchars'/'fillchars'
Solution: Include the field name in error message.
(zeertzjq)
related: neovim/neovim#27050
closes: #13877
Co-authored-by: Cole Frankenhoff <cole.nhf@gmail.com>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 17 Jan 2024 21:15:03 +0100 |
parents | 7d9358937eb9 |
children | a7354a835a78 |
comparison
equal
deleted
inserted
replaced
34156:6e58c97e633a | 34157:e7d64a3fffe4 |
---|---|
2856 | 2856 |
2857 // Parse default for 'wildmode' | 2857 // Parse default for 'wildmode' |
2858 check_opt_wim(); | 2858 check_opt_wim(); |
2859 | 2859 |
2860 // Parse default for 'listchars'. | 2860 // Parse default for 'listchars'. |
2861 (void)set_listchars_option(curwin, curwin->w_p_lcs, TRUE); | 2861 (void)set_listchars_option(curwin, curwin->w_p_lcs, TRUE, NULL, 0); |
2862 | 2862 |
2863 // Parse default for 'fillchars'. | 2863 // Parse default for 'fillchars'. |
2864 (void)set_fillchars_option(curwin, curwin->w_p_fcs, TRUE); | 2864 (void)set_fillchars_option(curwin, curwin->w_p_fcs, TRUE, NULL, 0); |
2865 | 2865 |
2866 #ifdef FEAT_CLIPBOARD | 2866 #ifdef FEAT_CLIPBOARD |
2867 // Parse default for 'clipboard' | 2867 // Parse default for 'clipboard' |
2868 (void)did_set_clipboard(NULL); | 2868 (void)did_set_clipboard(NULL); |
2869 #endif | 2869 #endif |
6217 case PV_MENC: | 6217 case PV_MENC: |
6218 clear_string_option(&buf->b_p_menc); | 6218 clear_string_option(&buf->b_p_menc); |
6219 break; | 6219 break; |
6220 case PV_LCS: | 6220 case PV_LCS: |
6221 clear_string_option(&((win_T *)from)->w_p_lcs); | 6221 clear_string_option(&((win_T *)from)->w_p_lcs); |
6222 set_listchars_option((win_T *)from, ((win_T *)from)->w_p_lcs, TRUE); | 6222 set_listchars_option((win_T *)from, ((win_T *)from)->w_p_lcs, TRUE, |
6223 NULL, 0); | |
6223 redraw_later(UPD_NOT_VALID); | 6224 redraw_later(UPD_NOT_VALID); |
6224 break; | 6225 break; |
6225 case PV_FCS: | 6226 case PV_FCS: |
6226 clear_string_option(&((win_T *)from)->w_p_fcs); | 6227 clear_string_option(&((win_T *)from)->w_p_fcs); |
6227 set_fillchars_option((win_T *)from, ((win_T *)from)->w_p_fcs, TRUE); | 6228 set_fillchars_option((win_T *)from, ((win_T *)from)->w_p_fcs, TRUE, |
6229 NULL, 0); | |
6228 redraw_later(UPD_NOT_VALID); | 6230 redraw_later(UPD_NOT_VALID); |
6229 break; | 6231 break; |
6230 case PV_VE: | 6232 case PV_VE: |
6231 clear_string_option(&((win_T *)from)->w_p_ve); | 6233 clear_string_option(&((win_T *)from)->w_p_ve); |
6232 ((win_T *)from)->w_ve_flags = 0; | 6234 ((win_T *)from)->w_ve_flags = 0; |
6628 #endif | 6630 #endif |
6629 #ifdef FEAT_SYN_HL | 6631 #ifdef FEAT_SYN_HL |
6630 fill_culopt_flags(NULL, wp); | 6632 fill_culopt_flags(NULL, wp); |
6631 check_colorcolumn(wp); | 6633 check_colorcolumn(wp); |
6632 #endif | 6634 #endif |
6633 set_listchars_option(wp, wp->w_p_lcs, TRUE); | 6635 set_listchars_option(wp, wp->w_p_lcs, TRUE, NULL, 0); |
6634 set_fillchars_option(wp, wp->w_p_fcs, TRUE); | 6636 set_fillchars_option(wp, wp->w_p_fcs, TRUE, NULL, 0); |
6635 } | 6637 } |
6636 | 6638 |
6637 static char_u * | 6639 static char_u * |
6638 copy_option_val(char_u *val) | 6640 copy_option_val(char_u *val) |
6639 { | 6641 { |