summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-25 15:03:45 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-25 15:03:45 +0100
commitba6ad17378ddb9b33412d85174224997b8ff7a4f (patch)
tree6d3d76c77155373f1a4dd82d23d46b973ea29e63
parente5e0fbcd4244d032a0635ad7defe2831f251c639 (diff)
patch 8.0.0505: failed window split for :stag not handledv8.0.0505
Problem: Failed window split for :stag not handled. (Coverity CID 99204) Solution: If the split fails skip to the end. (bstaletic, closes #1577)
-rw-r--r--src/tag.c8
-rw-r--r--src/version.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/tag.c b/src/tag.c
index 7710135fa3..e2795b8052 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 6719bf1004..9717094226 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 505,
+/**/
504,
/**/
503,