changeset 32647:f4a6b6c9b2cb v9.0.1655

patch 9.0.1655: syntax test fails when Vim window is not tall enough Commit: https://github.com/vim/vim/commit/2f43ec9363b8f4120609ef43841a5524fed0f7d7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 23 22:59:26 2023 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jun 2023 00:00:11 +0200
parents acf855d7660c
children b2a8dc55e3f2
files runtime/syntax/testdir/runtest.vim src/version.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/syntax/testdir/runtest.vim
+++ b/runtime/syntax/testdir/runtest.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1655,
+/**/
     1654,
 /**/
     1653,