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