0
0
mirror of https://github.com/vim/vim.git synced 2025-10-14 07:04:10 -04:00

patch 8.2.4010: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-05 17:49:15 +00:00
parent d3a117814d
commit 9d00e4a814
31 changed files with 200 additions and 87 deletions

View File

@@ -206,8 +206,6 @@ static ff_stack_T *ff_create_stack_element(char_u *, int, int);
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 @@ vim_findfile_init(
{
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 @@ vim_findfile_init(
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);