0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2017-03-25 15:03:45 +01:00
parent e5e0fbcd42
commit ba6ad17378
2 changed files with 8 additions and 2 deletions

View File

@@ -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