Skip to content

Commit ba6ad17

Browse files
committed
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)
1 parent e5e0fbc commit ba6ad17

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/tag.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3203,8 +3203,12 @@ jumpto_tag(
32033203
* open a new tab page. */
32043204
if (postponed_split || cmdmod.tab != 0)
32053205
{
3206-
win_split(postponed_split > 0 ? postponed_split : 0,
3207-
postponed_split_flags);
3206+
if (win_split(postponed_split > 0 ? postponed_split : 0,
3207+
postponed_split_flags) == FAIL)
3208+
{
3209+
--RedrawingDisabled;
3210+
goto erret;
3211+
}
32083212
RESET_BINDING(curwin);
32093213
}
32103214
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
505,
767769
/**/
768770
504,
769771
/**/

0 commit comments

Comments
 (0)