]> granicus.if.org Git - vim/commitdiff
updated for version 7.2b-029 v7.2b.029
authorBram Moolenaar <Bram@vim.org>
Wed, 6 Aug 2008 13:03:07 +0000 (13:03 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 6 Aug 2008 13:03:07 +0000 (13:03 +0000)
src/ex_cmds.c
src/ex_getln.c
src/version.c

index d700cc5373e85669c4f66ca4c11e801278eda7c5..c2dc2676460b62a57d750edba56b3978f8718712 100644 (file)
@@ -5897,12 +5897,17 @@ find_help_tags(arg, num_matches, matches, keep_lang)
     flags = TAG_HELP | TAG_REGEXP | TAG_NAMES | TAG_VERBOSE;
     if (keep_lang)
        flags |= TAG_KEEP_LANG;
-    if (find_tags(IObuff, num_matches, matches, flags, TAG_MANY, NULL) == OK
+    if (find_tags(IObuff, num_matches, matches, flags, (int)MAXCOL, NULL) == OK
            && *num_matches > 0)
+    {
        /* Sort the matches found on the heuristic number that is after the
         * tag name. */
        qsort((void *)*matches, (size_t)*num_matches,
                                              sizeof(char_u *), help_compare);
+       /* Delete more than TAG_MANY to reduce the size of the listing. */
+       while (*num_matches > TAG_MANY)
+           vim_free((*matches)[--*num_matches]);
+    }
     return OK;
 }
 
index 624bf1c8de3513f7b166d5bd22b12222de5294c7..c9760d1dba9d377415a72a6da1f6e15bef150897 100644 (file)
@@ -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);
index 77d550fe8097293769167d8cac26000fd7df2f2b..f105e722386e357a51e3135d3ee98959b6a5837d 100644 (file)
@@ -676,6 +676,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    29,
 /**/
     28,
 /**/