patch 8.2.4010: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/insexpand.c b/src/insexpand.c
index 5dbd782..e6d05bf 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -124,9 +124,6 @@
# define CP_FAST 32 // use fast_breakcheck instead of ui_breakcheck
static char e_hitend[] = N_("Hit end of paragraph");
-# ifdef FEAT_COMPL_FUNC
-static char e_compldel[] = N_("E840: Completion function deleted text");
-# endif
/*
* All the current matches are stored in a list.
@@ -2670,7 +2667,7 @@
validate_cursor();
if (!EQUAL_POS(curwin->w_cursor, pos))
{
- emsg(_(e_compldel));
+ emsg(_(e_complete_function_deleted_text));
goto theend;
}
@@ -4506,7 +4503,7 @@
validate_cursor();
if (!EQUAL_POS(curwin->w_cursor, pos))
{
- emsg(_(e_compldel));
+ emsg(_(e_complete_function_deleted_text));
return FAIL;
}