Karsten Hopp ce3731
To: vim-dev@vim.org
Karsten Hopp ce3731
Subject: Patch 7.1.213
Karsten Hopp ce3731
Fcc: outbox
Karsten Hopp ce3731
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ce3731
Mime-Version: 1.0
Karsten Hopp ce3731
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp ce3731
Content-Transfer-Encoding: 8bit
Karsten Hopp ce3731
------------
Karsten Hopp ce3731
Karsten Hopp ce3731
Patch 7.1.213
Karsten Hopp ce3731
Problem:    A ":tabedit" command that results in the "swap file exists" dialog
Karsten Hopp ce3731
	    and selecting "abort" doesn't close the new tab. (Al Budden)
Karsten Hopp ce3731
Solution:   Pass "old_curwin" to do_exedit().
Karsten Hopp ce3731
Files:	    src/ex_docmd.c
Karsten Hopp ce3731
Karsten Hopp ce3731
Karsten Hopp ce3731
*** ../vim-7.1.212/src/ex_docmd.c	Sun Jan  6 20:05:36 2008
Karsten Hopp ce3731
--- src/ex_docmd.c	Wed Jan  9 20:11:13 2008
Karsten Hopp ce3731
***************
Karsten Hopp ce3731
*** 7126,7132 ****
Karsten Hopp ce3731
  			 : eap->addr_count == 0 ? 0
Karsten Hopp ce3731
  					       : (int)eap->line2 + 1) != FAIL)
Karsten Hopp ce3731
  	{
Karsten Hopp ce3731
! 	    do_exedit(eap, NULL);
Karsten Hopp ce3731
  
Karsten Hopp ce3731
  	    /* set the alternate buffer for the window we came from */
Karsten Hopp ce3731
  	    if (curwin != old_curwin
Karsten Hopp ce3731
--- 7127,7133 ----
Karsten Hopp ce3731
  			 : eap->addr_count == 0 ? 0
Karsten Hopp ce3731
  					       : (int)eap->line2 + 1) != FAIL)
Karsten Hopp ce3731
  	{
Karsten Hopp ce3731
! 	    do_exedit(eap, old_curwin);
Karsten Hopp ce3731
  
Karsten Hopp ce3731
  	    /* set the alternate buffer for the window we came from */
Karsten Hopp ce3731
  	    if (curwin != old_curwin
Karsten Hopp ce3731
*** ../vim-7.1.212/src/version.c	Wed Jan  9 10:13:24 2008
Karsten Hopp ce3731
--- src/version.c	Wed Jan  9 20:29:09 2008
Karsten Hopp ce3731
***************
Karsten Hopp ce3731
*** 668,669 ****
Karsten Hopp ce3731
--- 668,671 ----
Karsten Hopp ce3731
  {   /* Add new patch number below this line */
Karsten Hopp ce3731
+ /**/
Karsten Hopp ce3731
+     213,
Karsten Hopp ce3731
  /**/
Karsten Hopp ce3731
Karsten Hopp ce3731
-- 
Karsten Hopp ce3731
Q: What do you call a fish without an eye?
Karsten Hopp ce3731
A: fsh!
Karsten Hopp ce3731
Q: What do you call a deer with no eyes?
Karsten Hopp ce3731
A: no eye deer.
Karsten Hopp ce3731
Q: What do you call a deer with no eyes and no legs?
Karsten Hopp ce3731
A: still no eye deer.
Karsten Hopp ce3731
Karsten Hopp ce3731
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ce3731
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ce3731
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp ce3731
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///