comparison src/ex_cmds.c @ 1696:0c4a465bd741 v7.2b.029

updated for version 7.2b-029
author vimboss
date Wed, 06 Aug 2008 13:03:07 +0000
parents b2e037ed7e33
children 7b258a166daa
comparison
equal deleted inserted replaced
1695:0dbc46d14443 1696:0c4a465bd741
5895 *matches = (char_u **)""; 5895 *matches = (char_u **)"";
5896 *num_matches = 0; 5896 *num_matches = 0;
5897 flags = TAG_HELP | TAG_REGEXP | TAG_NAMES | TAG_VERBOSE; 5897 flags = TAG_HELP | TAG_REGEXP | TAG_NAMES | TAG_VERBOSE;
5898 if (keep_lang) 5898 if (keep_lang)
5899 flags |= TAG_KEEP_LANG; 5899 flags |= TAG_KEEP_LANG;
5900 if (find_tags(IObuff, num_matches, matches, flags, TAG_MANY, NULL) == OK 5900 if (find_tags(IObuff, num_matches, matches, flags, (int)MAXCOL, NULL) == OK
5901 && *num_matches > 0) 5901 && *num_matches > 0)
5902 {
5902 /* Sort the matches found on the heuristic number that is after the 5903 /* Sort the matches found on the heuristic number that is after the
5903 * tag name. */ 5904 * tag name. */
5904 qsort((void *)*matches, (size_t)*num_matches, 5905 qsort((void *)*matches, (size_t)*num_matches,
5905 sizeof(char_u *), help_compare); 5906 sizeof(char_u *), help_compare);
5907 /* Delete more than TAG_MANY to reduce the size of the listing. */
5908 while (*num_matches > TAG_MANY)
5909 vim_free((*matches)[--*num_matches]);
5910 }
5906 return OK; 5911 return OK;
5907 } 5912 }
5908 5913
5909 /* 5914 /*
5910 * After reading a help file: May cleanup a help buffer when syntax 5915 * After reading a help file: May cleanup a help buffer when syntax