comparison src/findfile.c @ 26962:85866e069c24 v8.2.4010

patch 8.2.4010: error messages are spread out Commit: https://github.com/vim/vim/commit/9d00e4a8146862c17ed429dc6b1b43349acb2b5f Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 5 17:49:15 2022 +0000 patch 8.2.4010: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Jan 2022 19:00:06 +0100
parents d4e61d61afd9
children c9474ae175f4
comparison
equal deleted inserted replaced
26961:33c0467b3c52 26962:85866e069c24
203 static ff_stack_T *ff_create_stack_element(char_u *, int, int); 203 static ff_stack_T *ff_create_stack_element(char_u *, int, int);
204 #endif 204 #endif
205 #ifdef FEAT_PATH_EXTRA 205 #ifdef FEAT_PATH_EXTRA
206 static int ff_path_in_stoplist(char_u *, int, char_u **); 206 static int ff_path_in_stoplist(char_u *, int, char_u **);
207 #endif 207 #endif
208
209 static char_u e_pathtoolong[] = N_("E854: path too long for completion");
210 208
211 static char_u *ff_expand_buffer = NULL; // used for expanding filenames 209 static char_u *ff_expand_buffer = NULL; // used for expanding filenames
212 210
213 #if 0 211 #if 0
214 /* 212 /*
499 len = 0; 497 len = 0;
500 while (*wc_part != NUL) 498 while (*wc_part != NUL)
501 { 499 {
502 if (len + 5 >= MAXPATHL) 500 if (len + 5 >= MAXPATHL)
503 { 501 {
504 emsg(_(e_pathtoolong)); 502 emsg(_(e_path_too_long_for_completion));
505 break; 503 break;
506 } 504 }
507 if (STRNCMP(wc_part, "**", 2) == 0) 505 if (STRNCMP(wc_part, "**", 2) == 0)
508 { 506 {
509 ff_expand_buffer[len++] = *wc_part++; 507 ff_expand_buffer[len++] = *wc_part++;
549 547
550 // create an absolute path 548 // create an absolute path
551 if (STRLEN(search_ctx->ffsc_start_dir) 549 if (STRLEN(search_ctx->ffsc_start_dir)
552 + STRLEN(search_ctx->ffsc_fix_path) + 3 >= MAXPATHL) 550 + STRLEN(search_ctx->ffsc_fix_path) + 3 >= MAXPATHL)
553 { 551 {
554 emsg(_(e_pathtoolong)); 552 emsg(_(e_path_too_long_for_completion));
555 goto error_return; 553 goto error_return;
556 } 554 }
557 STRCPY(ff_expand_buffer, search_ctx->ffsc_start_dir); 555 STRCPY(ff_expand_buffer, search_ctx->ffsc_start_dir);
558 add_pathsep(ff_expand_buffer); 556 add_pathsep(ff_expand_buffer);
559 { 557 {