vim-patch:8.1.1839: insufficient info when test fails because of screen size

Problem:    Insufficient info when test fails because of screen size.
Solution:   Report the detected screen size.
0b5dc64446
This commit is contained in:
Jan Edmund Lazo 2019-08-17 18:29:13 -04:00
parent eb3ec78c63
commit 454adf15db
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -31,12 +31,14 @@
" Check that the screen size is at least 24 x 80 characters.
if &lines < 24 || &columns < 80
let error = 'Screen size too small! Tests require at least 24 lines with 80 characters'
let error = 'Screen size too small! Tests require at least 24 lines with 80 characters, got ' .. &lines .. ' lines with ' .. &columns .. ' characters'
echoerr error
split test.log
$put =error
write
split messages
call append(line('$'), '')
call append(line('$'), 'From ' . expand('%') . ':')
call append(line('$'), error)
write
qa!
@ -161,7 +163,7 @@ func RunTheTest(test)
endtry
endif
" Clear any autocommands
" Clear any autocommands and put back the catch-all for SwapExists.
au!
au SwapExists * call HandleSwapExists()