diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-01-27 20:26:46 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-01-27 20:26:46 +0100 |
commit | 6d1dcffc356ca4f94babb9df6d68036bfe722008 (patch) | |
tree | 5f5409b9d1ff3a135c61078ce4e0041452f128cd | |
parent | da4d7a92d5188ed96795bb98667766c49e16bc72 (diff) | |
download | vim-git-6d1dcffc356ca4f94babb9df6d68036bfe722008.tar.gz |
updated for version 7.2.349v7.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.
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/window.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c index 2f48ecb64..2fbee777e 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 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 |