mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 21:38:19 +00:00
errors: Introduce "E856: Filename too long"
This commit is contained in:
@@ -185,7 +185,7 @@ command: >
|
|||||||
<
|
<
|
||||||
|
|
||||||
*:helpt* *:helptags*
|
*:helpt* *:helptags*
|
||||||
*E154* *E150* *E151* *E152* *E153* *E670*
|
*E154* *E150* *E151* *E152* *E153* *E670* *E856*
|
||||||
:helpt[ags] [++t] {dir}
|
:helpt[ags] [++t] {dir}
|
||||||
Generate the help tags file(s) for directory {dir}.
|
Generate the help tags file(s) for directory {dir}.
|
||||||
When {dir} is ALL then all "doc" directories in
|
When {dir} is ALL then all "doc" directories in
|
||||||
|
@@ -4816,7 +4816,7 @@ void fix_help_buffer(void)
|
|||||||
if (!add_pathsep((char *)NameBuff)
|
if (!add_pathsep((char *)NameBuff)
|
||||||
|| STRLCAT(NameBuff, "doc/*.??[tx]",
|
|| STRLCAT(NameBuff, "doc/*.??[tx]",
|
||||||
sizeof(NameBuff)) >= MAXPATHL) {
|
sizeof(NameBuff)) >= MAXPATHL) {
|
||||||
EMSG(_(e_pathtoolong));
|
EMSG(_(e_fnametoolong));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4984,7 +4984,7 @@ static void helptags_one(char_u *dir, char_u *ext, char_u *tagfname,
|
|||||||
if (dirlen >= MAXPATHL
|
if (dirlen >= MAXPATHL
|
||||||
|| STRLCAT(NameBuff, "/**/*", sizeof(NameBuff)) >= MAXPATHL // NOLINT
|
|| STRLCAT(NameBuff, "/**/*", sizeof(NameBuff)) >= MAXPATHL // NOLINT
|
||||||
|| STRLCAT(NameBuff, ext, sizeof(NameBuff)) >= MAXPATHL) {
|
|| STRLCAT(NameBuff, ext, sizeof(NameBuff)) >= MAXPATHL) {
|
||||||
EMSG(_(e_pathtoolong));
|
EMSG(_(e_fnametoolong));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5006,7 +5006,7 @@ static void helptags_one(char_u *dir, char_u *ext, char_u *tagfname,
|
|||||||
memcpy(NameBuff, dir, dirlen + 1);
|
memcpy(NameBuff, dir, dirlen + 1);
|
||||||
if (!add_pathsep((char *)NameBuff)
|
if (!add_pathsep((char *)NameBuff)
|
||||||
|| STRLCAT(NameBuff, tagfname, sizeof(NameBuff)) >= MAXPATHL) {
|
|| STRLCAT(NameBuff, tagfname, sizeof(NameBuff)) >= MAXPATHL) {
|
||||||
EMSG(_(e_pathtoolong));
|
EMSG(_(e_fnametoolong));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fd_tags = mch_fopen((char *)NameBuff, "w");
|
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));
|
STRLCPY(NameBuff, dirname, sizeof(NameBuff));
|
||||||
if (!add_pathsep((char *)NameBuff)
|
if (!add_pathsep((char *)NameBuff)
|
||||||
|| STRLCAT(NameBuff, "**", sizeof(NameBuff)) >= MAXPATHL) {
|
|| STRLCAT(NameBuff, "**", sizeof(NameBuff)) >= MAXPATHL) {
|
||||||
EMSG(_(e_pathtoolong));
|
EMSG(_(e_fnametoolong));
|
||||||
xfree(dirname);
|
xfree(dirname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -191,6 +191,8 @@ typedef struct ff_search_ctx_T {
|
|||||||
# include "file_search.c.generated.h"
|
# include "file_search.c.generated.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static char_u e_pathtoolong[] = N_("E854: path too long for completion");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialization routine for vim_findfile().
|
* Initialization routine for vim_findfile().
|
||||||
*
|
*
|
||||||
|
@@ -1215,7 +1215,7 @@ EXTERN char_u e_invalidreg[] INIT(= N_("E850: Invalid register name"));
|
|||||||
EXTERN char_u e_dirnotf[] INIT(= N_(
|
EXTERN char_u e_dirnotf[] INIT(= N_(
|
||||||
"E919: Directory not found in '%s': \"%s\""));
|
"E919: Directory not found in '%s': \"%s\""));
|
||||||
EXTERN char_u e_unsupportedoption[] INIT(= N_("E519: Option not supported"));
|
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"));
|
EXTERN char top_bot_msg[] INIT(= N_("search hit TOP, continuing at BOTTOM"));
|
||||||
|
Reference in New Issue
Block a user