Mercurial > vim
changeset 16326:1679b9f54946 v8.1.1168
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 <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Apr 2019 22:45:04 +0200 |
parents | 97a120b07dc0 |
children | 750f687ca105 |
files | src/testdir/screendump.vim src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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