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/normal.c | |
parent | 910f66f90c928da8b607ccfdc12fc33d9cb8d4a9 (diff) | |
download | vim-git-8dff818edfb61658b94128111234c3c074c1cadc.tar.gz |
updated for version 7.0c11
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/normal.c b/src/normal.c index e285b80df..bc6955d8a 100644 --- a/src/normal.c +++ b/src/normal.c @@ -5080,15 +5080,15 @@ handle_tabmenu() break; case TABLINE_MENU_NEW: - if (current_tab > 0) - goto_tabpage(current_tab); - do_cmdline_cmd((char_u *)"tabnew"); + vim_snprintf((char *)IObuff, IOSIZE, "%dtabnew", + current_tab > 0 ? current_tab - 1 : 999); + do_cmdline_cmd(IObuff); break; case TABLINE_MENU_OPEN: - if (current_tab > 0) - goto_tabpage(current_tab); - do_cmdline_cmd((char_u *)"browse tabnew"); + vim_snprintf((char *)IObuff, IOSIZE, "browse %dtabnew", + current_tab > 0 ? current_tab - 1 : 999); + do_cmdline_cmd(IObuff); break; } } |