Karsten Hopp 5a4685
To: vim_dev@googlegroups.com
Karsten Hopp 5a4685
Subject: Patch 7.4.641
Karsten Hopp 5a4685
Fcc: outbox
Karsten Hopp 5a4685
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5a4685
Mime-Version: 1.0
Karsten Hopp 5a4685
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5a4685
Content-Transfer-Encoding: 8bit
Karsten Hopp 5a4685
------------
Karsten Hopp 5a4685
Karsten Hopp 5a4685
Patch 7.4.641
Karsten Hopp 5a4685
Problem:    The tabline menu was using ":999tabnew" which is now invalid.
Karsten Hopp 5a4685
Solution:   Use ":$tabnew" instead. (Florian Degner)
Karsten Hopp 5a4685
Files:	    src/normal.c
Karsten Hopp 5a4685
Karsten Hopp 5a4685
Karsten Hopp 5a4685
*** ../vim-7.4.640/src/normal.c	2015-02-17 15:43:52.800426905 +0100
Karsten Hopp 5a4685
--- src/normal.c	2015-02-27 14:58:38.888264043 +0100
Karsten Hopp 5a4685
***************
Karsten Hopp 5a4685
*** 5302,5316 ****
Karsten Hopp 5a4685
  	    break;
Karsten Hopp 5a4685
  
Karsten Hopp 5a4685
  	case TABLINE_MENU_NEW:
Karsten Hopp 5a4685
! 	    vim_snprintf((char *)IObuff, IOSIZE, "%dtabnew",
Karsten Hopp 5a4685
! 				     current_tab > 0 ? current_tab - 1 : 999);
Karsten Hopp 5a4685
! 	    do_cmdline_cmd(IObuff);
Karsten Hopp 5a4685
  	    break;
Karsten Hopp 5a4685
  
Karsten Hopp 5a4685
  	case TABLINE_MENU_OPEN:
Karsten Hopp 5a4685
! 	    vim_snprintf((char *)IObuff, IOSIZE, "browse %dtabnew",
Karsten Hopp 5a4685
! 				     current_tab > 0 ? current_tab - 1 : 999);
Karsten Hopp 5a4685
! 	    do_cmdline_cmd(IObuff);
Karsten Hopp 5a4685
  	    break;
Karsten Hopp 5a4685
      }
Karsten Hopp 5a4685
  }
Karsten Hopp 5a4685
--- 5302,5326 ----
Karsten Hopp 5a4685
  	    break;
Karsten Hopp 5a4685
  
Karsten Hopp 5a4685
  	case TABLINE_MENU_NEW:
Karsten Hopp 5a4685
! 	    if (current_tab == 0)
Karsten Hopp 5a4685
! 		do_cmdline_cmd((char_u *)"$tabnew");
Karsten Hopp 5a4685
! 	    else
Karsten Hopp 5a4685
! 	    {
Karsten Hopp 5a4685
! 		vim_snprintf((char *)IObuff, IOSIZE, "%dtabnew",
Karsten Hopp 5a4685
! 							     current_tab - 1);
Karsten Hopp 5a4685
! 		do_cmdline_cmd(IObuff);
Karsten Hopp 5a4685
! 	    }
Karsten Hopp 5a4685
  	    break;
Karsten Hopp 5a4685
  
Karsten Hopp 5a4685
  	case TABLINE_MENU_OPEN:
Karsten Hopp 5a4685
! 	    if (current_tab == 0)
Karsten Hopp 5a4685
! 		do_cmdline_cmd((char_u *)"browse $tabnew");
Karsten Hopp 5a4685
! 	    else
Karsten Hopp 5a4685
! 	    {
Karsten Hopp 5a4685
! 		vim_snprintf((char *)IObuff, IOSIZE, "browse %dtabnew",
Karsten Hopp 5a4685
! 							     current_tab - 1);
Karsten Hopp 5a4685
! 		do_cmdline_cmd(IObuff);
Karsten Hopp 5a4685
! 	    }
Karsten Hopp 5a4685
  	    break;
Karsten Hopp 5a4685
      }
Karsten Hopp 5a4685
  }
Karsten Hopp 5a4685
*** ../vim-7.4.640/src/version.c	2015-02-17 17:50:20.430274997 +0100
Karsten Hopp 5a4685
--- src/version.c	2015-02-27 14:59:40.367571019 +0100
Karsten Hopp 5a4685
***************
Karsten Hopp 5a4685
*** 743,744 ****
Karsten Hopp 5a4685
--- 743,746 ----
Karsten Hopp 5a4685
  {   /* Add new patch number below this line */
Karsten Hopp 5a4685
+ /**/
Karsten Hopp 5a4685
+     641,
Karsten Hopp 5a4685
  /**/
Karsten Hopp 5a4685
Karsten Hopp 5a4685
-- 
Karsten Hopp 5a4685
       Bravely bold Sir Robin, rode forth from Camelot,
Karsten Hopp 5a4685
       He was not afraid to die, Oh Brave Sir Robin,
Karsten Hopp 5a4685
       He was not at all afraid to be killed in nasty ways
Karsten Hopp 5a4685
       Brave, brave, brave, brave Sir Robin.
Karsten Hopp 5a4685
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 5a4685
Karsten Hopp 5a4685
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5a4685
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5a4685
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5a4685
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///