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