summaryrefslogtreecommitdiff
path: root/src/tag.c
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 /src/tag.c
parente5e0fbcd4244d032a0635ad7defe2831f251c639 (diff)
downloadvim-git-ba6ad17378ddb9b33412d85174224997b8ff7a4f.tar.gz
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)
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c8
1 files changed, 6 insertions, 2 deletions
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