summaryrefslogtreecommitdiffstats
path: root/vim/vim-7.2/7.2.349
blob: 7d0be0204e6c881919d4e34e588e7a43afec6f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
To: vim-dev@vim.org
Subject: Patch 7.2.349
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 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.
Files:	    src/window.c


*** ../vim-7.2.348/src/window.c	2009-06-24 17:31:27.000000000 +0200
--- src/window.c	2010-01-27 20:23:22.000000000 +0100
***************
*** 626,632 ****
  #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;
  			nchar = xchar;
  			goto wingotofile;
  #endif
--- 626,632 ----
  #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 = tabpage_index(curtab) + 1;
  			nchar = xchar;
  			goto wingotofile;
  #endif
*** ../vim-7.2.348/src/version.c	2010-01-27 18:29:21.000000000 +0100
--- src/version.c	2010-01-27 20:25:43.000000000 +0100
***************
*** 683,684 ****
--- 683,686 ----
  {   /* Add new patch number below this line */
+ /**/
+     349,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
159. You get excited whenever discussing your hard drive.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///