Mercurial > vim
comparison src/testdir/test_winfixbuf.vim @ 34489:4dd6d243e4f7 v9.1.0152
patch 9.1.0152: Coverity complains about ignoring return value
Commit: https://github.com/vim/vim/commit/af7ae8160041e2d17c56945381e9370e7178e596
Author: Christian Brabandt <cb@256bit.org>
Date: Wed Mar 6 19:31:39 2024 +0100
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
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 06 Mar 2024 21:00:08 +0100 |
parents | 157cf882799f |
children | 4da97f213d15 |
comparison
equal
deleted
inserted
replaced
34488:bba7ce0467f1 | 34489:4dd6d243e4f7 |
---|---|
3246 | 3246 |
3247 au! QfChanged | 3247 au! QfChanged |
3248 augroup! QfChanged | 3248 augroup! QfChanged |
3249 endfunc | 3249 endfunc |
3250 | 3250 |
3251 func Test_bufdo_splitwin_fails() | |
3252 call s:reset_all_buffers() | |
3253 let other = s:make_buffer_pairs() | |
3254 " Make sure there is not enough room to | |
3255 " split the winfixedbuf window | |
3256 let &winheight=&lines | |
3257 let &winminheight=&lines-2 | |
3258 call assert_fails(':bufdo echo 1', 'E36:') | |
3259 set winminheight&vim winheight&vim | |
3260 endfunc | |
3261 | |
3251 " vim: shiftwidth=2 sts=2 expandtab | 3262 " vim: shiftwidth=2 sts=2 expandtab |