mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3545: setcellwidths() may make 'listchars' or 'fillchars' invalid
Problem: setcellwidths() may make 'listchars' or 'fillchars' invalid. Solution: Check the value and give an error. (closes #9024)
This commit is contained in:
@@ -871,7 +871,7 @@ did_set_string_option(
|
||||
if (check_opt_strings(p_ambw, p_ambw_values, FALSE) != OK)
|
||||
errmsg = e_invarg;
|
||||
else if (set_chars_option(curwin, &p_fcs) != NULL)
|
||||
errmsg = _("E835: Conflicts with value of 'fillchars'");
|
||||
errmsg = _(e_conflicts_with_value_of_fillchars);
|
||||
else
|
||||
{
|
||||
tabpage_T *tp;
|
||||
@@ -881,7 +881,7 @@ did_set_string_option(
|
||||
{
|
||||
if (set_chars_option(wp, &wp->w_p_lcs) != NULL)
|
||||
{
|
||||
errmsg = _("E834: Conflicts with value of 'listchars'");
|
||||
errmsg = _(e_conflicts_with_value_of_listchars);
|
||||
goto ambw_end;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user