summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-13 22:35:29 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-13 22:35:29 +0200
commit87dcfd75c218107ca966c80a0a56b236be046fc9 (patch)
tree2bf8971a97db0589072e1acbe7d909e9d7d213b9
parent39f76c6ac0f5e07a0e608ddf920a67702ec83824 (diff)
downloadvim-git-87dcfd75c218107ca966c80a0a56b236be046fc9.tar.gz
patch 8.1.1168: not all screen update code of terminal is executed in testsv8.1.1168
Problem: Not all screen update code of the terminal window is executed in tests. Solution: Redraw before taking a screenshot.
-rw-r--r--src/testdir/screendump.vim4
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/screendump.vim b/src/testdir/screendump.vim
index 401541923..1630dfa0c 100644
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -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
diff --git a/src/version.c b/src/version.c
index a12bd0945..99ffbc3bb 100644
--- 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,