diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-21 21:07:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-21 21:07:20 +0200 |
commit | f868ba89039045b25efe83d12ca501d657e170e8 (patch) | |
tree | f2b8b5d777fbb259111a5d5fabe8a0c69358fca1 /src/cmdexpand.c | |
parent | c7db57788b661a5da0b375d4fffdf10721550141 (diff) |
patch 8.2.1262: src/ex_cmds.c file is too bigv8.2.1262
Problem: src/ex_cmds.c file is too big.
Solution: Move help related code to src/help.c. (Yegappan Lakshmanan,
closes #6506)
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r-- | src/cmdexpand.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c index d92366c61e..a10fff8b3d 100644 --- a/src/cmdexpand.c +++ b/src/cmdexpand.c @@ -1887,62 +1887,6 @@ expand_cmdline( return EXPAND_OK; } -#ifdef FEAT_MULTI_LANG -/* - * Cleanup matches for help tags: - * Remove "@ab" if the top of 'helplang' is "ab" and the language of the first - * tag matches it. Otherwise remove "@en" if "en" is the only language. - */ - static void -cleanup_help_tags(int num_file, char_u **file) -{ - int i, j; - int len; - char_u buf[4]; - char_u *p = buf; - - if (p_hlg[0] != NUL && (p_hlg[0] != 'e' || p_hlg[1] != 'n')) - { - *p++ = '@'; - *p++ = p_hlg[0]; - *p++ = p_hlg[1]; - } - *p = NUL; - - for (i = 0; i < num_file; ++i) - { - len = (int)STRLEN(file[i]) - 3; - if (len <= 0) - continue; - if (STRCMP(file[i] + len, "@en") == 0) - { - // Sorting on priority means the same item in another language may - // be anywhere. Search all items for a match up to the "@en". - for (j = 0; j < num_file; ++j) - if (j != i && (int)STRLEN(file[j]) == len + 3 - && STRNCMP(file[i], file[j], len + 1) == 0) - break; - if (j == num_file) - // item only exists with @en, remove it - file[i][len] = NUL; - } - } - - if (*buf != NUL) - for (i = 0; i < num_file; ++i) - { - len = (int)STRLEN(file[i]) - 3; - if (len <= 0) - continue; - if (STRCMP(file[i] + len, buf) == 0) - { - // remove the default language - file[i][len] = NUL; - } - } -} -#endif - /* * Function given to ExpandGeneric() to obtain the possible arguments of the * ":behave {mswin,xterm}" command. |