4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Command line completion for a shell command: "cat </tmp/file<Tab>"
13 Solution: Start the file name at any character that can't be in a file name.
18 *** ../vim-7.1.080/src/ex_docmd.c Tue Aug 14 22:54:00 2007
19 --- src/ex_docmd.c Sat Aug 18 14:58:53 2007
25 ! int in_quote = FALSE;
26 ! char_u *bow = NULL; /* Beginning of word */
29 * Allow spaces within back-quotes to count as part of the argument
32 xp->xp_pattern = skipwhite(arg);
33 ! for (p = xp->xp_pattern; *p; )
35 ! if (*p == '\\' && p[1] != NUL)
37 #ifdef SPACE_IN_FILENAME
38 ! else if (vim_iswhite(*p) && (!(ea.argt & NOSPC) || usefilter))
40 ! else if (vim_iswhite(*p))
57 ! in_quote = !in_quote;
66 ! int in_quote = FALSE;
67 ! char_u *bow = NULL; /* Beginning of word */
70 * Allow spaces within back-quotes to count as part of the argument
73 xp->xp_pattern = skipwhite(arg);
83 ! if (c == '\\' && p[1] != NUL)
92 + in_quote = !in_quote;
94 #ifdef SPACE_IN_FILENAME
95 ! else if (!vim_isfilec(c) && (!(ea.argt & NOSPC) || usefilter))
97 ! else if (!vim_isfilec(c))
104 ! c = mb_ptr2char(p);
108 ! if (c == '`' || vim_isfilec(c))
112 ! len = (*mb_ptr2len)(p);
126 *** ../vim-7.1.080/src/version.c Sat Aug 18 16:59:43 2007
127 --- src/version.c Sat Aug 18 17:45:54 2007
131 { /* Add new patch number below this line */
137 hundred-and-one symptoms of being an internet addict:
138 194. Your business cards contain your e-mail and home page address.
140 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
141 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
142 \\\ download, build and distribute -- http://www.A-A-P.org ///
143 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///