]> granicus.if.org Git - vim/commitdiff
patch 8.1.1168: not all screen update code of terminal is executed in tests v8.1.1168
authorBram Moolenaar <Bram@vim.org>
Sat, 13 Apr 2019 20:35:29 +0000 (22:35 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 13 Apr 2019 20:35:29 +0000 (22:35 +0200)
Problem:    Not all screen update code of the terminal window is executed in
            tests.
Solution:   Redraw before taking a screenshot.

src/testdir/screendump.vim
src/version.c

index 4015419233c83f8b1d83896600a536829a29b0eb..1630dfa0c570790e0fd47ffac8a15bf9d10f971d 100644 (file)
@@ -113,6 +113,10 @@ func VerifyScreenDump(buf, filename, options, ...)
   let reference = 'dumps/' . a:filename . '.dump'
   let testfile = 'failed/' . a:filename . '.dump'
 
+  " Redraw to execut the code that updates the screen.  Otherwise we get the
+  " text and attributes only from the internal buffer.
+  redraw
+
   let did_mkdir = 0
   if !isdirectory('failed')
     let did_mkdir = 1
index a12bd0945ef41e0200a8cdeb25d123d3cf66b4f4..99ffbc3bb5bb98b382cb86cf4457a95af8997c48 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1168,
 /**/
     1167,
 /**/