# HG changeset patch # User Bram Moolenaar # Date 1264620406 -3600 # Node ID f398e0cc5b7a032f327aa2f33b71c3bb6a22d46b # Parent 1378bc45ebe5754c0d3ec64d37810eaad3a544f3 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. diff --git a/src/version.c b/src/version.c --- 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 --- 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