]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.349 v7.2.349
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Jan 2010 19:26:46 +0000 (20:26 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Jan 2010 19:26:46 +0000 (20:26 +0100)
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.

src/version.c
src/window.c

index 2f48ecb6480688b5dba7b60fefed96cb50a41288..2fbee777eb018e1d014e6c05164887457862ec50 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    349,
 /**/
     348,
 /**/
index c1955ad7000245234310f67e78bfaf339458db54..08457683b89dc3cfa4ffea17deb21dc9ea18b4ae 100644 (file)
@@ -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