diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-05 17:49:15 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-05 17:49:15 +0000 |
commit | 9d00e4a8146862c17ed429dc6b1b43349acb2b5f (patch) | |
tree | 79a1e0d0a738940dba6a9a86936376bd62e04ca3 /src/findfile.c | |
parent | d3a117814d6acbf0dca3eff1a7626843b9b3734a (diff) | |
download | vim-git-9d00e4a8146862c17ed429dc6b1b43349acb2b5f.tar.gz |
patch 8.2.4010: error messages are spread outv8.2.4010
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/findfile.c')
-rw-r--r-- | src/findfile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/findfile.c b/src/findfile.c index cc0cc6e92..230f4870d 100644 --- a/src/findfile.c +++ b/src/findfile.c @@ -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); |