mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
vim-patch:9.1.0152: Coverity complains about ignoring return value
Problem: Coverity complains about ignoring return value of win_split()
(after v9.1.150)
Solution: Check if win_split() failed, add winfixbuf.res to Makefile
af7ae81600
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -457,8 +457,9 @@ void ex_listdo(exarg_T *eap)
|
||||
}
|
||||
if (curwin->w_p_wfb) {
|
||||
// Split the window, which will be 'nowinfixbuf', and set curwin to that
|
||||
win_split(0, 0);
|
||||
|
||||
if (win_split(0, 0) == FAIL) {
|
||||
return; // error message already given
|
||||
}
|
||||
if (curwin->w_p_wfb) {
|
||||
// Autocommands set 'winfixbuf' or sent us to another window
|
||||
// with it set. Give up.
|
||||
|
Reference in New Issue
Block a user