mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
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)
This commit is contained in:
@@ -8200,6 +8200,9 @@ ex_splitview(exarg_T *eap)
|
|||||||
#ifdef FEAT_BROWSE
|
#ifdef FEAT_BROWSE
|
||||||
int browse_flag = cmdmod.browse;
|
int browse_flag = cmdmod.browse;
|
||||||
#endif
|
#endif
|
||||||
|
int use_tab = eap->cmdidx == CMD_tabedit
|
||||||
|
|| eap->cmdidx == CMD_tabfind
|
||||||
|
|| eap->cmdidx == CMD_tabnew;
|
||||||
|
|
||||||
#ifdef FEAT_GUI
|
#ifdef FEAT_GUI
|
||||||
need_mouse_correct = TRUE;
|
need_mouse_correct = TRUE;
|
||||||
@@ -8248,7 +8251,9 @@ ex_splitview(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fname = do_browse(0, (char_u *)_("Edit File in new window"),
|
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);
|
eap->arg, NULL, NULL, NULL, curbuf);
|
||||||
if (fname == NULL)
|
if (fname == NULL)
|
||||||
goto theend;
|
goto theend;
|
||||||
@@ -8261,9 +8266,7 @@ ex_splitview(exarg_T *eap)
|
|||||||
/*
|
/*
|
||||||
* Either open new tab page or split the window.
|
* Either open new tab page or split the window.
|
||||||
*/
|
*/
|
||||||
if (eap->cmdidx == CMD_tabedit
|
if (use_tab)
|
||||||
|| eap->cmdidx == CMD_tabfind
|
|
||||||
|| eap->cmdidx == CMD_tabnew)
|
|
||||||
{
|
{
|
||||||
if (win_new_tabpage(cmdmod.tab != 0 ? cmdmod.tab
|
if (win_new_tabpage(cmdmod.tab != 0 ? cmdmod.tab
|
||||||
: eap->addr_count == 0 ? 0
|
: eap->addr_count == 0 ? 0
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
95,
|
||||||
/**/
|
/**/
|
||||||
94,
|
94,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user