changeset 17113:18ec0b92f431 v8.1.1556

patch 8.1.1556: command for failing screenshot does not include directory commit https://github.com/vim/vim/commit/8a5c7ef9bbded87abd8c937b16c576ed2ccbb805 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 16 16:14:20 2019 +0200 patch 8.1.1556: command for failing screenshot does not include directory Problem: The command displayed to show a failing screenshot does not include the "testdir" directory. Solution: Prefix the directory name so that it can be copy-pasted.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Jun 2019 16:15:04 +0200
parents b1c7049696d9
children 90cb90ed8c2e
files src/testdir/screendump.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/screendump.vim
+++ b/src/testdir/screendump.vim
@@ -144,7 +144,7 @@ func VerifyScreenDump(buf, filename, opt
     if i == 100
       " Leave the failed dump around for inspection.
       if filereadable(reference)
-	let msg = 'See dump file difference: call term_dumpdiff("' . testfile . '", "' . reference . '")'
+	let msg = 'See dump file difference: call term_dumpdiff("testdir/' .. testfile .. '", "testdir/' .. reference .. '")'
 	if a:0 == 1
 	  let msg = a:1 . ': ' . msg
 	endif
@@ -152,7 +152,7 @@ func VerifyScreenDump(buf, filename, opt
 	  let msg = msg . '; line count is ' . len(testdump) . ' instead of ' . len(refdump)
 	endif
       else
-	let msg = 'See new dump file: call term_dumpload("' . testfile . '")'
+	let msg = 'See new dump file: call term_dumpload("testdir/' .. testfile .. '")'
       endif
       for i in range(len(refdump))
 	if i >= len(testdump)
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1556,
+/**/
     1555,
 /**/
     1554,