mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3069: error messages are spread out
Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user