Skip to content

Commit 39902a0

Browse files
committed
patch 8.1.0095: dialog for ":browse tabnew" says "new window"
Problem: Dialog for ":browse tabnew" says "new window". Solution: Use "new tab page". (closes #3053)
1 parent 32aaf5a commit 39902a0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/ex_docmd.c

+7-4
Original file line numberDiff line numberDiff line change
@@ -8200,6 +8200,9 @@ ex_splitview(exarg_T *eap)
82008200
#ifdef FEAT_BROWSE
82018201
int browse_flag = cmdmod.browse;
82028202
#endif
8203+
int use_tab = eap->cmdidx == CMD_tabedit
8204+
|| eap->cmdidx == CMD_tabfind
8205+
|| eap->cmdidx == CMD_tabnew;
82038206

82048207
#ifdef FEAT_GUI
82058208
need_mouse_correct = TRUE;
@@ -8248,7 +8251,9 @@ ex_splitview(exarg_T *eap)
82488251
}
82498252
else
82508253
{
8251-
fname = do_browse(0, (char_u *)_("Edit File in new window"),
8254+
fname = do_browse(0, (char_u *)(use_tab
8255+
? _("Edit File in new tab page")
8256+
: _("Edit File in new window")),
82528257
eap->arg, NULL, NULL, NULL, curbuf);
82538258
if (fname == NULL)
82548259
goto theend;
@@ -8261,9 +8266,7 @@ ex_splitview(exarg_T *eap)
82618266
/*
82628267
* Either open new tab page or split the window.
82638268
*/
8264-
if (eap->cmdidx == CMD_tabedit
8265-
|| eap->cmdidx == CMD_tabfind
8266-
|| eap->cmdidx == CMD_tabnew)
8269+
if (use_tab)
82678270
{
82688271
if (win_new_tabpage(cmdmod.tab != 0 ? cmdmod.tab
82698272
: eap->addr_count == 0 ? 0

src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
95,
764766
/**/
765767
94,
766768
/**/

0 commit comments

Comments
 (0)