diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-08-06 13:03:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-08-06 13:03:07 +0000 |
commit | c62e2fe59e06224fcf2fc4fa701be5c3bc25d984 (patch) | |
tree | 4a273e99e8337453322c80f9f40f637f609a8a45 /src/ex_getln.c | |
parent | 1b8d33b6b262e64433c37399482f3a735eb8adac (diff) | |
download | vim-git-c62e2fe59e06224fcf2fc4fa701be5c3bc25d984.tar.gz |
updated for version 7.2b-029v7.2b.029
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 624bf1c8d..c9760d1db 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4387,7 +4387,10 @@ ExpandFromContext(xp, pat, num_file, file, options) *num_file = 0; if (xp->xp_context == EXPAND_HELP) { - if (find_help_tags(pat, num_file, file, FALSE) == OK) + /* With an empty argument we would get all the help tags, which is + * very slow. Get matches for "help" instead. */ + if (find_help_tags(*pat == NUL ? (char_u *)"help" : pat, + num_file, file, FALSE) == OK) { #ifdef FEAT_MULTI_LANG cleanup_help_tags(*num_file, *file); |