From ba6ad17378ddb9b33412d85174224997b8ff7a4f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 25 Mar 2017 15:03:45 +0100 Subject: patch 8.0.0505: failed window split for :stag not handled 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 | 8 ++++++-- src/version.c | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tag.c b/src/tag.c index 7710135fa..e2795b805 100644 --- 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 diff --git a/src/version.c b/src/version.c index 6719bf100..971709422 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 505, /**/ 504, /**/ -- cgit v1.2.1