]>
Commit | Line | Data |
---|---|---|
9b1d76b7 AG |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.0.193 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.0.193 | |
11 | Problem: Using --remote or --remote-tab with an argument that matches | |
12 | 'wildignore' causes a crash. | |
13 | Solution: Check the argument count before using ARGLIST[0]. | |
14 | Files: src/ex_cmds.c | |
15 | ||
16 | ||
17 | *** ../vim-7.0.192/src/ex_cmds.c Tue Sep 5 18:28:45 2006 | |
18 | --- src/ex_cmds.c Tue Feb 13 03:47:52 2007 | |
19 | *************** | |
20 | *** 6967,6972 **** | |
21 | --- 6967,6980 ---- | |
22 | */ | |
23 | set_arglist(eap->arg); | |
24 | ||
25 | + /* | |
26 | + * Expanding wildcards may result in an empty argument list. E.g. when | |
27 | + * editing "foo.pyc" and ".pyc" is in 'wildignore'. Assume that we | |
28 | + * already did an error message for this. | |
29 | + */ | |
30 | + if (ARGCOUNT == 0) | |
31 | + return; | |
32 | + | |
33 | # ifdef FEAT_WINDOWS | |
34 | if (cmdmod.tab) | |
35 | { | |
36 | *** ../vim-7.0.192/src/version.c Wed Feb 7 03:42:37 2007 | |
37 | --- src/version.c Tue Feb 13 03:47:08 2007 | |
38 | *************** | |
39 | *** 668,669 **** | |
40 | --- 668,671 ---- | |
41 | { /* Add new patch number below this line */ | |
42 | + /**/ | |
43 | + 193, | |
44 | /**/ | |
45 | ||
46 | -- | |
47 | hundred-and-one symptoms of being an internet addict: | |
48 | 113. You are asked about a bus schedule, you wonder if it is 16 or 32 bits. | |
49 | ||
50 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
51 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
52 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
53 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |