vim-patch:8.0.0505: failed window split for :stag not handled (#8439)

Problem:    Failed window split for :stag not handled. (Coverity CID 99204)
Solution:   If the split fails skip to the end. (bstaletic, closes vim/vim#1577)
ba6ad17378
This commit is contained in:
KunMing Xie 2018-05-26 17:29:12 +08:00 committed by Justin M. Keyes
parent 47fa9de580
commit 5b2cee03c8

View File

@ -2404,11 +2404,14 @@ jumpto_tag (
}
}
/* If it was a CTRL-W CTRL-] command split window now. For ":tab tag"
* open a new tab page. */
// If it was a CTRL-W CTRL-] command split window now. For ":tab tag"
// open a new tab page.
if (postponed_split || cmdmod.tab != 0) {
(void)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);
}