Mercurial > vim
diff src/ex_getln.c @ 1696:0c4a465bd741 v7.2b.029
updated for version 7.2b-029
author | vimboss |
---|---|
date | Wed, 06 Aug 2008 13:03:07 +0000 |
parents | 3c6417b7e6ef |
children | 9e1cefec84dd |
line wrap: on
line diff
--- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4387,7 +4387,10 @@ ExpandFromContext(xp, pat, num_file, fil *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);