# HG changeset patch # User Bram Moolenaar # Date 1555188304 -7200 # Node ID 1679b9f5494602f6bbc4aa432808630c92b2da17 # Parent 97a120b07dc01f842e88065cd93a137da4f168bb patch 8.1.1168: not all screen update code of terminal is executed in tests commit https://github.com/vim/vim/commit/87dcfd75c218107ca966c80a0a56b236be046fc9 Author: Bram Moolenaar Date: Sat Apr 13 22:35:29 2019 +0200 patch 8.1.1168: not all screen update code of terminal is executed in tests Problem: Not all screen update code of the terminal window is executed in tests. Solution: Redraw before taking a screenshot. diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim --- a/src/testdir/screendump.vim +++ b/src/testdir/screendump.vim @@ -113,6 +113,10 @@ func VerifyScreenDump(buf, filename, opt 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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1168, +/**/ 1167, /**/ 1166,