patch 9.0.1655: syntax test fails when Vim window is not tall enough
Problem: Syntax test fails when Vim window is not tall enough. Solution: Make sure each terminal window is closed.
This commit is contained in:
		| @ -117,6 +117,16 @@ for fname in glob('input/*.*', 1, 1) | ||||
|       syntax on | ||||
|     END | ||||
|     call writefile(lines, 'Xtestscript') | ||||
|  | ||||
|     " close all but the last window | ||||
|     while winnr('$') > 1 | ||||
|       close | ||||
|     endwhile | ||||
|  | ||||
|     " Redraw to make sure that messages are cleared and there is enough space | ||||
|     " for the terminal window. | ||||
|     redraw | ||||
|  | ||||
|     let buf = RunVimInTerminal('-S Xtestscript ' .. fname, {}) | ||||
|  | ||||
|     " Screendump at the start of the file: failed/filetype_00.dump | ||||
|  | ||||
		Reference in New Issue
	
	Block a user