]>
Commit | Line | Data |
---|---|---|
215fbeef AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.326 | |
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.1.326 | |
11 | Problem: ":s!from!to!" works, but ":smagic!from!to!" doesn't. It sees the | |
12 | "!" as a flag to to the command. Same for ":snomagic". (Johan | |
13 | Spetz) | |
14 | Solution: When checking for a forced command also ignore ":smagic" and | |
15 | ":snomagic". (Ian Kelling) | |
16 | Files: src/ex_docmd.c | |
17 | ||
18 | ||
19 | *** ../vim-7.1.325/src/ex_docmd.c Fri Jun 20 11:10:53 2008 | |
20 | --- src/ex_docmd.c Fri Jun 20 10:42:30 2008 | |
21 | *************** | |
22 | *** 2142,2148 **** | |
23 | ||
24 | #endif | |
25 | ||
26 | ! if (*p == '!' && ea.cmdidx != CMD_substitute) /* forced commands */ | |
27 | { | |
28 | ++p; | |
29 | ea.forceit = TRUE; | |
30 | --- 2142,2150 ---- | |
31 | ||
32 | #endif | |
33 | ||
34 | ! /* forced commands */ | |
35 | ! if (*p == '!' && ea.cmdidx != CMD_substitute | |
36 | ! && ea.cmdidx != CMD_smagic && ea.cmdidx != CMD_snomagic) | |
37 | { | |
38 | ++p; | |
39 | ea.forceit = TRUE; | |
40 | *** ../vim-7.1.325/src/version.c Fri Jun 20 18:30:27 2008 | |
41 | --- src/version.c Fri Jun 20 18:50:19 2008 | |
42 | *************** | |
43 | *** 668,669 **** | |
44 | --- 673,676 ---- | |
45 | { /* Add new patch number below this line */ | |
46 | + /**/ | |
47 | + 326, | |
48 | /**/ | |
49 | ||
50 | -- | |
51 | hundred-and-one symptoms of being an internet addict: | |
52 | 55. You ask your doctor to implant a gig in your brain. | |
53 | ||
54 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
55 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
56 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
57 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |