diff src/digraph.c @ 25306:078edc1821bf v8.2.3190

patch 8.2.3190: error messages are spread out Commit: https://github.com/vim/vim/commit/e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 20 21:07:36 2021 +0200 patch 8.2.3190: error messages are spread out Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Jul 2021 21:15:05 +0200
parents c626fd34b66f
children 890fd8211202
line wrap: on
line diff
--- a/src/digraph.c
+++ b/src/digraph.c
@@ -2074,7 +2074,7 @@ putdigraph(char_u *str)
 	str = skipwhite(str);
 	if (!VIM_ISDIGIT(*str))
 	{
-	    emsg(_(e_number_exp));
+	    emsg(_(e_number_expected));
 	    return;
 	}
 	n = getdigits(&str);
@@ -2571,7 +2571,7 @@ keymap_init(void)
 	buflen = STRLEN(curbuf->b_p_keymap) + STRLEN(p_enc) + 14;
 	buf = alloc(buflen);
 	if (buf == NULL)
-	    return e_outofmem;
+	    return e_out_of_memory;
 
 	// try finding "keymap/'keymap'_'encoding'.vim"  in 'runtimepath'
 	vim_snprintf((char *)buf, buflen, "keymap/%s_%s.vim",