|
Karsten Hopp |
b70144 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
b70144 |
Subject: Patch 7.2.136
|
|
Karsten Hopp |
b70144 |
Fcc: outbox
|
|
Karsten Hopp |
b70144 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b70144 |
Mime-Version: 1.0
|
|
Karsten Hopp |
b70144 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
b70144 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b70144 |
------------
|
|
Karsten Hopp |
b70144 |
|
|
Karsten Hopp |
b70144 |
Patch 7.2.136 (after 7.2.132)
|
|
Karsten Hopp |
b70144 |
Problem: ":cd" is still possible in a SwapExists autocmd.
|
|
Karsten Hopp |
b70144 |
Solution: Check the allbuf_lock flag in ex_cd().
|
|
Karsten Hopp |
b70144 |
Files: src/ex_docmd.c
|
|
Karsten Hopp |
b70144 |
|
|
Karsten Hopp |
b70144 |
|
|
Karsten Hopp |
b70144 |
*** ../vim-7.2.135/src/ex_docmd.c Wed Mar 11 15:09:07 2009
|
|
Karsten Hopp |
b70144 |
--- src/ex_docmd.c Wed Mar 11 11:13:31 2009
|
|
Karsten Hopp |
b70144 |
***************
|
|
Karsten Hopp |
b70144 |
*** 7875,7880 ****
|
|
Karsten Hopp |
b70144 |
--- 7875,7884 ----
|
|
Karsten Hopp |
b70144 |
else
|
|
Karsten Hopp |
b70144 |
#endif
|
|
Karsten Hopp |
b70144 |
{
|
|
Karsten Hopp |
b70144 |
+ #ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
b70144 |
+ if (allbuf_locked())
|
|
Karsten Hopp |
b70144 |
+ return;
|
|
Karsten Hopp |
b70144 |
+ #endif
|
|
Karsten Hopp |
b70144 |
if (vim_strchr(p_cpo, CPO_CHDIR) != NULL && curbufIsChanged()
|
|
Karsten Hopp |
b70144 |
&& !eap->forceit)
|
|
Karsten Hopp |
b70144 |
{
|
|
Karsten Hopp |
b70144 |
*** ../vim-7.2.135/src/version.c Wed Mar 11 15:09:07 2009
|
|
Karsten Hopp |
b70144 |
--- src/version.c Wed Mar 11 15:35:36 2009
|
|
Karsten Hopp |
b70144 |
***************
|
|
Karsten Hopp |
b70144 |
*** 678,679 ****
|
|
Karsten Hopp |
b70144 |
--- 678,681 ----
|
|
Karsten Hopp |
b70144 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b70144 |
+ /**/
|
|
Karsten Hopp |
b70144 |
+ 136,
|
|
Karsten Hopp |
b70144 |
/**/
|
|
Karsten Hopp |
b70144 |
|
|
Karsten Hopp |
b70144 |
--
|
|
Karsten Hopp |
b70144 |
Press any key to continue, press any other key to quit.
|
|
Karsten Hopp |
b70144 |
|
|
Karsten Hopp |
b70144 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b70144 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b70144 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
b70144 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|