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/findfile.c b/src/findfile.c
index cc0cc6e..230f487 100644
--- a/src/findfile.c
+++ b/src/findfile.c
@@ -206,8 +206,6 @@
static int ff_path_in_stoplist(char_u *, int, char_u **);
#endif
-static char_u e_pathtoolong[] = N_("E854: path too long for completion");
-
static char_u *ff_expand_buffer = NULL; // used for expanding filenames
#if 0
@@ -501,7 +499,7 @@
{
if (len + 5 >= MAXPATHL)
{
- emsg(_(e_pathtoolong));
+ emsg(_(e_path_too_long_for_completion));
break;
}
if (STRNCMP(wc_part, "**", 2) == 0)
@@ -551,7 +549,7 @@
if (STRLEN(search_ctx->ffsc_start_dir)
+ STRLEN(search_ctx->ffsc_fix_path) + 3 >= MAXPATHL)
{
- emsg(_(e_pathtoolong));
+ emsg(_(e_path_too_long_for_completion));
goto error_return;
}
STRCPY(ff_expand_buffer, search_ctx->ffsc_start_dir);