diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-06 20:18:50 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-06 20:18:50 +0000 |
commit | 8dff818edfb61658b94128111234c3c074c1cadc (patch) | |
tree | ed09901efe925ec1b065c8dbd4cd94165b01cf6f /src/ex_docmd.c | |
parent | 910f66f90c928da8b607ccfdc12fc33d9cb8d4a9 (diff) | |
download | vim-git-8dff818edfb61658b94128111234c3c074c1cadc.tar.gz |
updated for version 7.0c11
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 0e0bcaec4..cff6d4ccb 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -7029,7 +7029,9 @@ ex_splitview(eap) || eap->cmdidx == CMD_tabfind || eap->cmdidx == CMD_tabnew) { - if (win_new_tabpage(cmdmod.tab) != FAIL) + if (win_new_tabpage(cmdmod.tab != 0 ? cmdmod.tab + : eap->addr_count == 0 ? 0 + : (int)eap->line2 + 1) != FAIL) { do_exedit(eap, NULL); |