]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.4.641 v7.4.641
authorBram Moolenaar <Bram@vim.org>
Fri, 27 Feb 2015 14:03:58 +0000 (15:03 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 27 Feb 2015 14:03:58 +0000 (15:03 +0100)
Problem:    The tabline menu was using ":999tabnew" which is now invalid.
Solution:   Use ":$tabnew" instead. (Florian Degner)

src/normal.c
src/version.c

index 86d4504a917bf5c56be1129b4a39d360f5f87b38..987705d4c68b0b405f0072bc630aed1bd3dc293b 100644 (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;
     }
 }
index 3365c806cafbc61a1395a38ed1b4bda1979728c6..34c6959720931e5c61c654051b51bd61b6f19a30 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    641,
 /**/
     640,
 /**/