summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-21 22:20:33 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-21 22:20:33 +0200
commitd8e44476d84b5f0cc8c4de080a47a3a9af547028 (patch)
treec45296f474fb015dc94cedc81238377efc8e55b0 /src/option.c
parent05bd9785fd0fd0102ab64554307bff0ec0ae34c1 (diff)
patch 8.2.3197: error messages are spread outv8.2.3197
Problem: Error messages are spread out. Solution: Move a few more error messages to errors.h.
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/option.c b/src/option.c
index 6232cd96d5..21d113e27e 100644
--- a/src/option.c
+++ b/src/option.c
@@ -1485,7 +1485,7 @@ do_set(
// Disallow changing some options in the sandbox
if (sandbox != 0 && (flags & P_SECURE))
{
- errmsg = e_sandbox;
+ errmsg = e_not_allowed_in_sandbox;
goto skip;
}
#endif
@@ -3757,7 +3757,7 @@ set_num_option(
if (pp == &(curwin->w_p_scr))
{
if (curwin->w_p_scr != 0)
- errmsg = e_scroll;
+ errmsg = e_invalid_scroll_size;
win_comp_scroll(curwin);
}
// If 'scroll' became invalid because of a side effect silently adjust
@@ -3793,7 +3793,7 @@ set_num_option(
p_sj = Rows / 2;
else
{
- errmsg = e_scroll;
+ errmsg = e_invalid_scroll_size;
p_sj = 1;
}
}
@@ -4366,7 +4366,7 @@ set_option_value(
// Disallow changing some options in the sandbox
if (sandbox > 0 && (flags & P_SECURE))
{
- emsg(_(e_sandbox));
+ emsg(_(e_not_allowed_in_sandbox));
return NULL;
}
#endif