mirror of
https://github.com/neovim/neovim.git
synced 2025-11-26 12:10:40 +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:
@@ -3248,4 +3248,15 @@ func Test_quickfix_changed_split_failed()
|
||||
augroup! QfChanged
|
||||
endfunc
|
||||
|
||||
func Test_bufdo_splitwin_fails()
|
||||
call s:reset_all_buffers()
|
||||
let other = s:make_buffer_pairs()
|
||||
" Make sure there is not enough room to
|
||||
" split the winfixedbuf window
|
||||
let &winheight=&lines
|
||||
let &winminheight=&lines-2
|
||||
call assert_fails(':bufdo echo 1', 'E36:')
|
||||
set winminheight&vim winheight&vim
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
Reference in New Issue
Block a user