mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
vim-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 vim/vim#3053)
39902a06d9
This commit is contained in:
@@ -6929,8 +6929,9 @@ void ex_splitview(exarg_T *eap)
|
|||||||
{
|
{
|
||||||
win_T *old_curwin = curwin;
|
win_T *old_curwin = curwin;
|
||||||
char_u *fname = NULL;
|
char_u *fname = NULL;
|
||||||
|
const bool use_tab = eap->cmdidx == CMD_tabedit
|
||||||
|
|| eap->cmdidx == CMD_tabfind
|
||||||
|
|| eap->cmdidx == CMD_tabnew;
|
||||||
|
|
||||||
/* A ":split" in the quickfix window works like ":new". Don't want two
|
/* A ":split" in the quickfix window works like ":new". Don't want two
|
||||||
* quickfix windows. But it's OK when doing ":tab split". */
|
* quickfix windows. But it's OK when doing ":tab split". */
|
||||||
@@ -6952,9 +6953,7 @@ void 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 : eap->addr_count == 0
|
if (win_new_tabpage(cmdmod.tab != 0 ? cmdmod.tab : eap->addr_count == 0
|
||||||
? 0 : (int)eap->line2 + 1, eap->arg) != FAIL) {
|
? 0 : (int)eap->line2 + 1, eap->arg) != FAIL) {
|
||||||
do_exedit(eap, old_curwin);
|
do_exedit(eap, old_curwin);
|
||||||
|
Reference in New Issue
Block a user