summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0095
blob: acb4407f103d2a8256af731bf5f173c0c7f36030 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0095
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0095
Problem:    Dialog for ":browse tabnew" says "new window".
Solution:   Use "new tab page". (closes #3053)
Files:	    src/ex_docmd.c


*** ../vim-8.1.0094/src/ex_docmd.c	2018-06-12 17:03:35.945611819 +0200
--- src/ex_docmd.c	2018-06-21 22:07:23.933769249 +0200
***************
*** 8200,8205 ****
--- 8200,8208 ----
  #ifdef FEAT_BROWSE
      int		browse_flag = cmdmod.browse;
  #endif
+     int		use_tab = eap->cmdidx == CMD_tabedit
+ 		       || eap->cmdidx == CMD_tabfind
+ 		       || eap->cmdidx == CMD_tabnew;
  
  #ifdef FEAT_GUI
      need_mouse_correct = TRUE;
***************
*** 8248,8254 ****
  	}
  	else
  	{
! 	    fname = do_browse(0, (char_u *)_("Edit File in new window"),
  					  eap->arg, NULL, NULL, NULL, curbuf);
  	    if (fname == NULL)
  		goto theend;
--- 8251,8259 ----
  	}
  	else
  	{
! 	    fname = do_browse(0, (char_u *)(use_tab
! 			? _("Edit File in new tab page")
! 			: _("Edit File in new window")),
  					  eap->arg, NULL, NULL, NULL, curbuf);
  	    if (fname == NULL)
  		goto theend;
***************
*** 8261,8269 ****
      /*
       * Either open new tab page or split the window.
       */
!     if (eap->cmdidx == CMD_tabedit
! 	    || eap->cmdidx == CMD_tabfind
! 	    || eap->cmdidx == CMD_tabnew)
      {
  	if (win_new_tabpage(cmdmod.tab != 0 ? cmdmod.tab
  			 : eap->addr_count == 0 ? 0
--- 8266,8272 ----
      /*
       * Either open new tab page or split the window.
       */
!     if (use_tab)
      {
  	if (win_new_tabpage(cmdmod.tab != 0 ? cmdmod.tab
  			 : eap->addr_count == 0 ? 0
*** ../vim-8.1.0094/src/version.c	2018-06-21 21:38:29.599534681 +0200
--- src/version.c	2018-06-21 22:08:45.513304600 +0200
***************
*** 763,764 ****
--- 763,766 ----
  {   /* Add new patch number below this line */
+ /**/
+     95,
  /**/

-- 
From "know your smileys":
 +<(:-) The Pope

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///