diff src/window.c @ 2064:f398e0cc5b7a v7.2.349

updated for version 7.2.349 Problem: CTRL-W gf doesn't put the new tab in the same place as "tab split" and "gf". (Tony Mechelynck) Solution: Store the tab number in cmdmod.tab.
author Bram Moolenaar <bram@zimbu.org>
date Wed, 27 Jan 2010 20:26:46 +0100
parents eac2556d4620
children 5fd44cf99b6d
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -626,7 +626,7 @@ wingotofile:
 #ifdef FEAT_SEARCHPATH
 		    case 'f':	    /* CTRL-W gf: "gf" in a new tab page */
 		    case 'F':	    /* CTRL-W gF: "gF" in a new tab page */
-			cmdmod.tab = TRUE;
+			cmdmod.tab = tabpage_index(curtab) + 1;
 			nchar = xchar;
 			goto wingotofile;
 #endif