4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Patch 7.1.222 (after 7.1.217)
11 Problem: Wildcards in argument of ":helptags" are not expanded. (Marcel
13 Solution: Expand wildcards in the directory name.
17 *** ../vim-7.1.221/src/ex_cmds.c Fri Jan 11 21:00:49 2008
18 --- src/ex_cmds.c Sat Jan 12 21:40:51 2008
22 #ifdef FEAT_MULTI_LANG
32 eap->arg = skipwhite(eap->arg + 3);
35 ! if (!mch_isdir(eap->arg))
37 EMSG2(_("E150: Not a directory: %s"), eap->arg);
40 eap->arg = skipwhite(eap->arg + 3);
44 ! xpc.xp_context = EXPAND_DIRECTORIES;
45 ! dirname = ExpandOne(&xpc, eap->arg, NULL,
46 ! WILD_LIST_NOTFOUND|WILD_SILENT, WILD_EXPAND_FREE);
47 ! if (dirname == NULL || !mch_isdir(dirname))
49 EMSG2(_("E150: Not a directory: %s"), eap->arg);
54 #ifdef FEAT_MULTI_LANG
55 /* Get a list of all files in the directory. */
56 ! STRCPY(NameBuff, eap->arg);
57 add_pathsep(NameBuff);
58 STRCAT(NameBuff, "*");
59 if (gen_expand_wildcards(1, &NameBuff, &filecount, &files,
62 #ifdef FEAT_MULTI_LANG
63 /* Get a list of all files in the directory. */
64 ! STRCPY(NameBuff, dirname);
65 add_pathsep(NameBuff);
66 STRCAT(NameBuff, "*");
67 if (gen_expand_wildcards(1, &NameBuff, &filecount, &files,
73 EMSG2("E151: No match: %s", NameBuff);
83 ! helptags_one(eap->arg, ext, fname, add_help_tags);
91 ! helptags_one(dirname, ext, fname, add_help_tags);
99 /* No language support, just use "*.txt" and "tags". */
100 ! helptags_one(eap->arg, (char_u *)".txt", (char_u *)"tags", add_help_tags);
108 /* No language support, just use "*.txt" and "tags". */
109 ! helptags_one(dirname, (char_u *)".txt", (char_u *)"tags", add_help_tags);
115 *** ../vim-7.1.221/src/version.c Sat Jan 12 18:13:05 2008
116 --- src/version.c Sun Jan 13 13:27:04 2008
120 { /* Add new patch number below this line */
126 Arthur pulls Pin out. The MONK blesses the grenade as ...
127 ARTHUR: (quietly) One, two, five ...
130 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
132 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
133 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
134 \\\ download, build and distribute -- http://www.A-A-P.org ///
135 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///