diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-13 21:31:08 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-14 08:54:00 -0400 |
commit | bddd67a331334b12a32d93f6b43f39e9ec120f2d (patch) | |
tree | 807bc9c25592f243932fca405ba6bec5781cd8e8 | |
parent | b946bcbc3b191e11a392af38217876ad1bf50e87 (diff) | |
download | rneovim-bddd67a331334b12a32d93f6b43f39e9ec120f2d.tar.gz rneovim-bddd67a331334b12a32d93f6b43f39e9ec120f2d.tar.bz2 rneovim-bddd67a331334b12a32d93f6b43f39e9ec120f2d.zip |
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)
https://github.com/vim/vim/commit/39902a06d92750c203d86c921b9d69995f949d97
-rw-r--r-- | src/nvim/ex_docmd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 3f4ad321e3..b4c634292c 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -6929,8 +6929,9 @@ void ex_splitview(exarg_T *eap) { win_T *old_curwin = curwin; 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 * 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. */ - if (eap->cmdidx == CMD_tabedit - || eap->cmdidx == CMD_tabfind - || eap->cmdidx == CMD_tabnew) { + if (use_tab) { if (win_new_tabpage(cmdmod.tab != 0 ? cmdmod.tab : eap->addr_count == 0 ? 0 : (int)eap->line2 + 1, eap->arg) != FAIL) { do_exedit(eap, old_curwin); |