From 8ec0075a4264390d5ee8fba44e121233cacc84c8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 27 Jan 2010 20:25:43 +0000 Subject: [PATCH] [7.2.349] CTRL-W gf doesn't put the new tab in the same place as "tab split" 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. Patch 7.2.349 --- src/version.c | 2 ++ src/window.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 2f48ecb6..2fbee777 100644 --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 349, +/**/ 348, /**/ 347, diff --git a/src/window.c b/src/window.c index c1955ad7..08457683 100644 --- 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 -- 2.11.4.GIT