File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed
Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -741,6 +741,8 @@ static char *(features[]) =
741741
742742static int included_patches [] =
743743{ /* Add new patch number below this line */
744+ /**/
745+ 641 ,
744746/**/
745747 640 ,
746748/**/
You can’t perform that action at this time.
0 commit comments