]>
Commit | Line | Data |
---|---|---|
a328bbc4 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.0.056 | |
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.056 | |
11 | Problem: "#!something" gives an error message. | |
12 | Solution: Ignore this line, so that it can be used in an executable Vim | |
13 | script. | |
14 | Files: src/ex_docmd.c | |
15 | ||
16 | ||
17 | *** ../vim-7.0.055/src/ex_docmd.c Sat May 13 12:36:18 2006 | |
18 | --- src/ex_docmd.c Thu Aug 10 23:50:32 2006 | |
19 | *************** | |
20 | *** 1709,1714 **** | |
21 | --- 1712,1721 ---- | |
22 | */ | |
23 | save_cmdmod = cmdmod; | |
24 | vim_memset(&cmdmod, 0, sizeof(cmdmod)); | |
25 | + | |
26 | + /* "#!anything" is handled like a comment. */ | |
27 | + if ((*cmdlinep)[0] == '#' && (*cmdlinep)[1] == '!') | |
28 | + goto doend; | |
29 | ||
30 | /* | |
31 | * Repeat until no more command modifiers are found. | |
32 | *** ../vim-7.0.055/src/version.c Wed Aug 16 16:24:58 2006 | |
33 | --- src/version.c Wed Aug 16 17:05:35 2006 | |
34 | *************** | |
35 | *** 668,669 **** | |
36 | --- 668,671 ---- | |
37 | { /* Add new patch number below this line */ | |
38 | + /**/ | |
39 | + 56, | |
40 | /**/ | |
41 | ||
42 | -- | |
43 | hundred-and-one symptoms of being an internet addict: | |
44 | 158. You get a tuner card so you can watch TV while surfing. | |
45 | ||
46 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
47 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
48 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
49 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |