errors: Introduce "E856: Filename too long"

This commit is contained in:
Justin M. Keyes 2017-01-23 15:32:11 +01:00
parent 7c7c5a80a4
commit 73da522d73
4 changed files with 8 additions and 6 deletions

View File

@ -185,7 +185,7 @@ command: >
<
*:helpt* *:helptags*
*E154* *E150* *E151* *E152* *E153* *E670*
*E154* *E150* *E151* *E152* *E153* *E670* *E856*
:helpt[ags] [++t] {dir}
Generate the help tags file(s) for directory {dir}.
When {dir} is ALL then all "doc" directories in

View File

@ -4816,7 +4816,7 @@ void fix_help_buffer(void)
if (!add_pathsep((char *)NameBuff)
|| STRLCAT(NameBuff, "doc/*.??[tx]",
sizeof(NameBuff)) >= MAXPATHL) {
EMSG(_(e_pathtoolong));
EMSG(_(e_fnametoolong));
continue;
}
@ -4984,7 +4984,7 @@ static void helptags_one(char_u *dir, char_u *ext, char_u *tagfname,
if (dirlen >= MAXPATHL
|| STRLCAT(NameBuff, "/**/*", sizeof(NameBuff)) >= MAXPATHL // NOLINT
|| STRLCAT(NameBuff, ext, sizeof(NameBuff)) >= MAXPATHL) {
EMSG(_(e_pathtoolong));
EMSG(_(e_fnametoolong));
return;
}
@ -5006,7 +5006,7 @@ static void helptags_one(char_u *dir, char_u *ext, char_u *tagfname,
memcpy(NameBuff, dir, dirlen + 1);
if (!add_pathsep((char *)NameBuff)
|| STRLCAT(NameBuff, tagfname, sizeof(NameBuff)) >= MAXPATHL) {
EMSG(_(e_pathtoolong));
EMSG(_(e_fnametoolong));
return;
}
fd_tags = mch_fopen((char *)NameBuff, "w");
@ -5184,7 +5184,7 @@ static void do_helptags(char_u *dirname, bool add_help_tags)
STRLCPY(NameBuff, dirname, sizeof(NameBuff));
if (!add_pathsep((char *)NameBuff)
|| STRLCAT(NameBuff, "**", sizeof(NameBuff)) >= MAXPATHL) {
EMSG(_(e_pathtoolong));
EMSG(_(e_fnametoolong));
xfree(dirname);
return;
}

View File

@ -191,6 +191,8 @@ typedef struct ff_search_ctx_T {
# include "file_search.c.generated.h"
#endif
static char_u e_pathtoolong[] = N_("E854: path too long for completion");
/*
* Initialization routine for vim_findfile().
*

View File

@ -1215,7 +1215,7 @@ EXTERN char_u e_invalidreg[] INIT(= N_("E850: Invalid register name"));
EXTERN char_u e_dirnotf[] INIT(= N_(
"E919: Directory not found in '%s': \"%s\""));
EXTERN char_u e_unsupportedoption[] INIT(= N_("E519: Option not supported"));
EXTERN char_u e_pathtoolong[] INIT(= N_("E854: path too long for completion"));
EXTERN char_u e_fnametoolong[] INIT(= N_("E856: Filename too long"));
EXTERN char top_bot_msg[] INIT(= N_("search hit TOP, continuing at BOTTOM"));