mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
47fa9de580
commit
5b2cee03c8
@ -2404,11 +2404,14 @@ jumpto_tag (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If it was a CTRL-W CTRL-] command split window now. For ":tab tag"
|
// If it was a CTRL-W CTRL-] command split window now. For ":tab tag"
|
||||||
* open a new tab page. */
|
// open a new tab page.
|
||||||
if (postponed_split || cmdmod.tab != 0) {
|
if (postponed_split || cmdmod.tab != 0) {
|
||||||
(void)win_split(postponed_split > 0 ? postponed_split : 0,
|
if (win_split(postponed_split > 0 ? postponed_split : 0,
|
||||||
postponed_split_flags);
|
postponed_split_flags) == FAIL) {
|
||||||
|
RedrawingDisabled--;
|
||||||
|
goto erret;
|
||||||
|
}
|
||||||
RESET_BINDING(curwin);
|
RESET_BINDING(curwin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user