]>
Commit | Line | Data |
---|---|---|
d22eaa71 ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.165 | |
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.2.165 | |
11 | Problem: The argument for the FuncUndefined autocmd event is expanded like | |
12 | a file name. | |
13 | Solution: Don't try expanding it. (Wang Xu) | |
14 | Files: src/fileio.c | |
15 | ||
16 | ||
17 | *** ../vim-7.2.164/src/fileio.c Wed Apr 29 11:00:09 2009 | |
18 | --- src/fileio.c Wed Apr 29 18:01:06 2009 | |
19 | *************** | |
20 | *** 8785,8793 **** | |
21 | else | |
22 | { | |
23 | sfname = vim_strsave(fname); | |
24 | ! /* Don't try expanding FileType, Syntax, WindowID or QuickFixCmd* */ | |
25 | if (event == EVENT_FILETYPE | |
26 | || event == EVENT_SYNTAX | |
27 | || event == EVENT_REMOTEREPLY | |
28 | || event == EVENT_SPELLFILEMISSING | |
29 | || event == EVENT_QUICKFIXCMDPRE | |
30 | --- 8785,8795 ---- | |
31 | else | |
32 | { | |
33 | sfname = vim_strsave(fname); | |
34 | ! /* Don't try expanding FileType, Syntax, FuncUndefined, WindowID or | |
35 | ! * QuickFixCmd* */ | |
36 | if (event == EVENT_FILETYPE | |
37 | || event == EVENT_SYNTAX | |
38 | + || event == EVENT_FUNCUNDEFINED | |
39 | || event == EVENT_REMOTEREPLY | |
40 | || event == EVENT_SPELLFILEMISSING | |
41 | || event == EVENT_QUICKFIXCMDPRE | |
42 | *** ../vim-7.2.164/src/version.c Wed Apr 29 17:39:17 2009 | |
43 | --- src/version.c Wed Apr 29 18:00:43 2009 | |
44 | *************** | |
45 | *** 678,679 **** | |
46 | --- 678,681 ---- | |
47 | { /* Add new patch number below this line */ | |
48 | + /**/ | |
49 | + 165, | |
50 | /**/ | |
51 | ||
52 | -- | |
53 | Be nice to your kids... they'll be the ones choosing your nursing home. | |
54 | ||
55 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
56 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
57 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
58 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |