diff options
author | KunMing Xie <qqzz014@gmail.com> | 2018-05-26 17:29:12 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-26 11:29:12 +0200 |
commit | 5b2cee03c87a1cc54a747f70753c47e0ece028d4 (patch) | |
tree | 1d809f9c9d6f357b5af546d8c079c2fb745f57c4 | |
parent | 47fa9de5805bb3dcc6ecc9d6836d2dbd8e727a40 (diff) | |
download | rneovim-5b2cee03c87a1cc54a747f70753c47e0ece028d4.tar.gz rneovim-5b2cee03c87a1cc54a747f70753c47e0ece028d4.tar.bz2 rneovim-5b2cee03c87a1cc54a747f70753c47e0ece028d4.zip |
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)
https://github.com/vim/vim/commit/ba6ad17378ddb9b33412d85174224997b8ff7a4f
-rw-r--r-- | src/nvim/tag.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index ba2727f0d7..d7bdf97c48 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -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); } |