summaryrefslogtreecommitdiff
path: root/src/optionstr.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-10-20 11:01:15 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-20 11:01:15 +0100
commit94358a1e6e640ca5ebeb295efdddd4e92b700673 (patch)
tree81179f39149f91396d2c5af7c70ed758c326fbce /src/optionstr.c
parent051a40c8d91d4595c69a27375f739367d806a475 (diff)
downloadvim-git-94358a1e6e640ca5ebeb295efdddd4e92b700673.tar.gz
patch 8.2.3545: setcellwidths() may make 'listchars' or 'fillchars' invalidv8.2.3545
Problem: setcellwidths() may make 'listchars' or 'fillchars' invalid. Solution: Check the value and give an error. (closes #9024)
Diffstat (limited to 'src/optionstr.c')
-rw-r--r--src/optionstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/optionstr.c b/src/optionstr.c
index 7f2b04ddc..3afb3dbcf 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -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;
}
}