Skip to content

Commit 6478778

Browse files
committed
updated for version 7.4.641
Problem: The tabline menu was using ":999tabnew" which is now invalid. Solution: Use ":$tabnew" instead. (Florian Degner)
1 parent c1f6bdc commit 6478778

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

src/normal.c

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5302,15 +5302,25 @@ handle_tabmenu()
53025302
break;
53035303

53045304
case TABLINE_MENU_NEW:
5305-
vim_snprintf((char *)IObuff, IOSIZE, "%dtabnew",
5306-
current_tab > 0 ? current_tab - 1 : 999);
5307-
do_cmdline_cmd(IObuff);
5305+
if (current_tab == 0)
5306+
do_cmdline_cmd((char_u *)"$tabnew");
5307+
else
5308+
{
5309+
vim_snprintf((char *)IObuff, IOSIZE, "%dtabnew",
5310+
current_tab - 1);
5311+
do_cmdline_cmd(IObuff);
5312+
}
53085313
break;
53095314

53105315
case TABLINE_MENU_OPEN:
5311-
vim_snprintf((char *)IObuff, IOSIZE, "browse %dtabnew",
5312-
current_tab > 0 ? current_tab - 1 : 999);
5313-
do_cmdline_cmd(IObuff);
5316+
if (current_tab == 0)
5317+
do_cmdline_cmd((char_u *)"browse $tabnew");
5318+
else
5319+
{
5320+
vim_snprintf((char *)IObuff, IOSIZE, "browse %dtabnew",
5321+
current_tab - 1);
5322+
do_cmdline_cmd(IObuff);
5323+
}
53145324
break;
53155325
}
53165326
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
641,
744746
/**/
745747
640,
746748
/**/

0 commit comments

Comments
 (0)