# HG changeset patch # User Bram Moolenaar # Date 1565557209 -7200 # Node ID e2bfdd281578ef16799ec8604335e0c00b6f2f48 # Parent 7e02187c975e66e33facf9cb4dadb5627ce116e6 patch 8.1.1839: insufficient info when test fails because of screen size commit https://github.com/vim/vim/commit/0b5dc644465c549ac54fe3c4ad232dd692000d26 Author: Bram Moolenaar Date: Sun Aug 11 22:56:15 2019 +0200 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. diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -34,12 +34,14 @@ so small.vim " 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! @@ -170,7 +172,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() diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -770,6 +770,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1839, +/**/ 1838, /**/ 1837,