Skip to content

Commit

Permalink
patch 8.0.0505: failed window split for :stag not handled
Browse files Browse the repository at this point in the history
Problem:    Failed window split for :stag not handled. (Coverity CID 99204)
Solution:   If the split fails skip to the end. (bstaletic, closes #1577)
  • Loading branch information
brammool committed Mar 25, 2017
1 parent e5e0fbc commit ba6ad17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tag.c
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -764,6 +764,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
505,
/**/
504,
/**/
Expand Down

0 comments on commit ba6ad17

Please sign in to comment.