Skip to content

Commit 8a5c7ef

Browse files
committed
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.
1 parent 8cdbd5b commit 8a5c7ef

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/testdir/screendump.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ func VerifyScreenDump(buf, filename, options, ...)
144144
if i == 100
145145
" Leave the failed dump around for inspection.
146146
if filereadable(reference)
147-
let msg = 'See dump file difference: call term_dumpdiff("' . testfile . '", "' . reference . '")'
147+
let msg = 'See dump file difference: call term_dumpdiff("testdir/' .. testfile .. '", "testdir/' .. reference .. '")'
148148
if a:0 == 1
149149
let msg = a:1 . ': ' . msg
150150
endif
151151
if len(testdump) != len(refdump)
152152
let msg = msg . '; line count is ' . len(testdump) . ' instead of ' . len(refdump)
153153
endif
154154
else
155-
let msg = 'See new dump file: call term_dumpload("' . testfile . '")'
155+
let msg = 'See new dump file: call term_dumpload("testdir/' .. testfile .. '")'
156156
endif
157157
for i in range(len(refdump))
158158
if i >= len(testdump)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ static char *(features[]) =
777777

778778
static int included_patches[] =
779779
{ /* Add new patch number below this line */
780+
/**/
781+
1556,
780782
/**/
781783
1555,
782784
/**/

0 commit comments

Comments
 (0)