diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-21 22:10:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-21 22:10:08 +0200 |
commit | 39902a06d92750c203d86c921b9d69995f949d97 (patch) | |
tree | fef29483db38ec4e74493cf71283ec851eb34e86 | |
parent | 32aaf5ae07af1d5befaf997688fde5d6637d43f8 (diff) | |
download | vim-39902a06d92750c203d86c921b9d69995f949d97.zip |
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)
-rw-r--r-- | src/ex_docmd.c | 11 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 5229e0e73..4d5036f22 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8200,6 +8200,9 @@ ex_splitview(exarg_T *eap) #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,7 +8251,9 @@ ex_splitview(exarg_T *eap) } 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); if (fname == NULL) goto theend; @@ -8261,9 +8266,7 @@ 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 diff --git a/src/version.c b/src/version.c index 109c4b7e6..4bd054c7f 100644 --- a/src/version.c +++ b/src/version.c @@ -762,6 +762,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 95, +/**/ 94, /**/ 93, |