]>
Commit | Line | Data |
---|---|---|
478508cd ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.136 | |
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.136 (after 7.2.132) | |
11 | Problem: ":cd" is still possible in a SwapExists autocmd. | |
12 | Solution: Check the allbuf_lock flag in ex_cd(). | |
13 | Files: src/ex_docmd.c | |
14 | ||
15 | ||
16 | *** ../vim-7.2.135/src/ex_docmd.c Wed Mar 11 15:09:07 2009 | |
17 | --- src/ex_docmd.c Wed Mar 11 11:13:31 2009 | |
18 | *************** | |
19 | *** 7875,7880 **** | |
20 | --- 7875,7884 ---- | |
21 | else | |
22 | #endif | |
23 | { | |
24 | + #ifdef FEAT_AUTOCMD | |
25 | + if (allbuf_locked()) | |
26 | + return; | |
27 | + #endif | |
28 | if (vim_strchr(p_cpo, CPO_CHDIR) != NULL && curbufIsChanged() | |
29 | && !eap->forceit) | |
30 | { | |
31 | *** ../vim-7.2.135/src/version.c Wed Mar 11 15:09:07 2009 | |
32 | --- src/version.c Wed Mar 11 15:35:36 2009 | |
33 | *************** | |
34 | *** 678,679 **** | |
35 | --- 678,681 ---- | |
36 | { /* Add new patch number below this line */ | |
37 | + /**/ | |
38 | + 136, | |
39 | /**/ | |
40 | ||
41 | -- | |
42 | Press any key to continue, press any other key to quit. | |
43 | ||
44 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
45 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
46 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
47 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |