0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.4.641

Problem:    The tabline menu was using ":999tabnew" which is now invalid.
Solution:   Use ":$tabnew" instead. (Florian Degner)
This commit is contained in:
Bram Moolenaar
2015-02-27 15:03:58 +01:00
parent c3bbad085c
commit dfd7691bb8
2 changed files with 18 additions and 6 deletions

View File

@@ -5302,15 +5302,25 @@ handle_tabmenu()
break;
case TABLINE_MENU_NEW:
vim_snprintf((char *)IObuff, IOSIZE, "%dtabnew",
current_tab > 0 ? current_tab - 1 : 999);
do_cmdline_cmd(IObuff);
if (current_tab == 0)
do_cmdline_cmd((char_u *)"$tabnew");
else
{
vim_snprintf((char *)IObuff, IOSIZE, "%dtabnew",
current_tab - 1);
do_cmdline_cmd(IObuff);
}
break;
case TABLINE_MENU_OPEN:
vim_snprintf((char *)IObuff, IOSIZE, "browse %dtabnew",
current_tab > 0 ? current_tab - 1 : 999);
do_cmdline_cmd(IObuff);
if (current_tab == 0)
do_cmdline_cmd((char_u *)"browse $tabnew");
else
{
vim_snprintf((char *)IObuff, IOSIZE, "browse %dtabnew",
current_tab - 1);
do_cmdline_cmd(IObuff);
}
break;
}
}

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
641,
/**/
640,
/**/