Karsten Hopp e5abb0
To: vim-dev@vim.org
Karsten Hopp e5abb0
Subject: Patch 7.2.349
Karsten Hopp e5abb0
Fcc: outbox
Karsten Hopp e5abb0
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e5abb0
Mime-Version: 1.0
Karsten Hopp e5abb0
Content-Type: text/plain; charset=UTF-8
Karsten Hopp e5abb0
Content-Transfer-Encoding: 8bit
Karsten Hopp e5abb0
------------
Karsten Hopp e5abb0
Karsten Hopp e5abb0
Patch 7.2.349
Karsten Hopp e5abb0
Problem:    CTRL-W gf doesn't put the new tab in the same place as "tab split"
Karsten Hopp e5abb0
	    and "gf". (Tony Mechelynck)
Karsten Hopp e5abb0
Solution:   Store the tab number in cmdmod.tab.
Karsten Hopp e5abb0
Files:	    src/window.c
Karsten Hopp e5abb0
Karsten Hopp e5abb0
Karsten Hopp e5abb0
*** ../vim-7.2.348/src/window.c	2009-06-24 17:31:27.000000000 +0200
Karsten Hopp e5abb0
--- src/window.c	2010-01-27 20:23:22.000000000 +0100
Karsten Hopp e5abb0
***************
Karsten Hopp e5abb0
*** 626,632 ****
Karsten Hopp e5abb0
  #ifdef FEAT_SEARCHPATH
Karsten Hopp e5abb0
  		    case 'f':	    /* CTRL-W gf: "gf" in a new tab page */
Karsten Hopp e5abb0
  		    case 'F':	    /* CTRL-W gF: "gF" in a new tab page */
Karsten Hopp e5abb0
! 			cmdmod.tab = TRUE;
Karsten Hopp e5abb0
  			nchar = xchar;
Karsten Hopp e5abb0
  			goto wingotofile;
Karsten Hopp e5abb0
  #endif
Karsten Hopp e5abb0
--- 626,632 ----
Karsten Hopp e5abb0
  #ifdef FEAT_SEARCHPATH
Karsten Hopp e5abb0
  		    case 'f':	    /* CTRL-W gf: "gf" in a new tab page */
Karsten Hopp e5abb0
  		    case 'F':	    /* CTRL-W gF: "gF" in a new tab page */
Karsten Hopp e5abb0
! 			cmdmod.tab = tabpage_index(curtab) + 1;
Karsten Hopp e5abb0
  			nchar = xchar;
Karsten Hopp e5abb0
  			goto wingotofile;
Karsten Hopp e5abb0
  #endif
Karsten Hopp e5abb0
*** ../vim-7.2.348/src/version.c	2010-01-27 18:29:21.000000000 +0100
Karsten Hopp e5abb0
--- src/version.c	2010-01-27 20:25:43.000000000 +0100
Karsten Hopp e5abb0
***************
Karsten Hopp e5abb0
*** 683,684 ****
Karsten Hopp e5abb0
--- 683,686 ----
Karsten Hopp e5abb0
  {   /* Add new patch number below this line */
Karsten Hopp e5abb0
+ /**/
Karsten Hopp e5abb0
+     349,
Karsten Hopp e5abb0
  /**/
Karsten Hopp e5abb0
Karsten Hopp e5abb0
-- 
Karsten Hopp e5abb0
hundred-and-one symptoms of being an internet addict:
Karsten Hopp e5abb0
159. You get excited whenever discussing your hard drive.
Karsten Hopp e5abb0
Karsten Hopp e5abb0
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e5abb0
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e5abb0
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp e5abb0
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///