diff src/optionstr.c @ 25064:8f2262c72178 v8.2.3069

patch 8.2.3069: error messages are spread out Commit: https://github.com/vim/vim/commit/108010aa4720ef023a8ac59004fc0f2bc11125af Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 27 22:03:33 2021 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Jun 2021 22:15:04 +0200
parents 7e9e53a0368f
children ac88cd21ae88
line wrap: on
line diff
--- 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