]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1655: syntax test fails when Vim window is not tall enough v9.0.1655
authorBram Moolenaar <Bram@vim.org>
Fri, 23 Jun 2023 21:59:26 +0000 (22:59 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 23 Jun 2023 21:59:26 +0000 (22:59 +0100)
Problem:    Syntax test fails when Vim window is not tall enough.
Solution:   Make sure each terminal window is closed.

runtime/syntax/testdir/runtest.vim
src/version.c

index 5878b5ec366081ad4ac4ab37b8be806ba3e0f4d5..55e874c7d6d7afa5596a91ff743c4b4e9a10761f 100644 (file)
@@ -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
index 4f224c36bc90b61968cb645a098f545e6803a586..fed49d9584556768325f8c404ff48a14dd133fea 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1655,
 /**/
     1654,
 /**/