mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
22
src/normal.c
22
src/normal.c
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user