0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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.
This commit is contained in:
Bram Moolenaar
2019-04-13 22:35:29 +02:00
parent 39f76c6ac0
commit 87dcfd75c2
2 changed files with 6 additions and 0 deletions

View 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

View File

@@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1168,
/**/
1167,
/**/