From: Bram Moolenaar Date: Wed, 27 Jan 2010 19:26:46 +0000 (+0100) Subject: updated for version 7.2.349 X-Git-Tag: v7.2.349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d1dcffc356ca4f94babb9df6d68036bfe722008;p=vim 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 index 2f48ecb64..2fbee777e 100644 --- a/src/version.c +++ b/src/version.c @@ -681,6 +681,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 349, /**/ 348, /**/ diff --git a/src/window.c b/src/window.c index c1955ad70..08457683b 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