]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.0505: failed window split for :stag not handled v8.0.0505
authorBram Moolenaar <Bram@vim.org>
Sat, 25 Mar 2017 14:03:45 +0000 (15:03 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 25 Mar 2017 14:03:45 +0000 (15:03 +0100)
Problem:    Failed window split for :stag not handled. (Coverity CID 99204)
Solution:   If the split fails skip to the end. (bstaletic, closes #1577)

src/tag.c
src/version.c

index 7710135fa3b8dbeebafe993b1eb4512aa9b051d0..e2795b8052e2d7b5816f227db2160651450142bc 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -3203,8 +3203,12 @@ jumpto_tag(
      * open a new tab page. */
     if (postponed_split || cmdmod.tab != 0)
     {
-       win_split(postponed_split > 0 ? postponed_split : 0,
-                                                      postponed_split_flags);
+       if (win_split(postponed_split > 0 ? postponed_split : 0,
+                                               postponed_split_flags) == FAIL)
+       {
+           --RedrawingDisabled;
+           goto erret;
+       }
        RESET_BINDING(curwin);
     }
 #endif
index 6719bf100456d0105345d3a77f1f75930015e45c..971709422668c7d95c510e2a5fd982bd2e1d4dad 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    505,
 /**/
     504,
 /**/