summaryrefslogtreecommitdiffstats
path: root/src/optionstr.c
diff options
context:
space:
mode:
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 47aee35be3..4c1cacc5cf 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -971,7 +971,7 @@ ambw_end:
if (gvarp == &p_fenc)
{
if (!curbuf->b_p_ma && opt_flags != OPT_GLOBAL)
- errmsg = e_modifiable;
+ errmsg = e_cannot_make_changes_modifiable_is_off;
else if (vim_strchr(*varp, ',') != NULL)
// No comma allowed in 'fileencoding'; catches confusing it
// with 'fileencodings'.
@@ -1130,7 +1130,7 @@ ambw_end:
else if (gvarp == &p_ff)
{
if (!curbuf->b_p_ma && !(opt_flags & OPT_GLOBAL))
- errmsg = e_modifiable;
+ errmsg = e_cannot_make_changes_modifiable_is_off;
else if (check_opt_strings(*varp, p_ff_values, FALSE) != OK)
errmsg = e_invarg;
else