# HG changeset patch # User Christian Brabandt # Date 1452870005 -3600 # Node ID 0738fa9c4971876a78fdcf3f87ca754b741b1e15 # Parent f19cf138e18dd4172feebb9feb370ce7b0224088 commit https://github.com/vim/vim/commit/ccb80989f2779c8441f7f15d160fb2141bd1676d Author: Bram Moolenaar Date: Fri Jan 15 15:56:35 2016 +0100 patch 7.4.1094 Problem: Test for :hardcopy fails on MS-Windows. Solution: Check for the +postscript feature. diff --git a/src/testdir/test_hardcopy.vim b/src/testdir/test_hardcopy.vim --- a/src/testdir/test_hardcopy.vim +++ b/src/testdir/test_hardcopy.vim @@ -45,12 +45,14 @@ endfunc " Test that :hardcopy produces a non-empty file. " We don't check much of the contents. func Test_with_syntax() - set printoptions=syntax:y - syn on - hardcopy > Xhardcopy - let lines = readfile('Xhardcopy') - call assert_true(len(lines) > 20) - call assert_true(lines[0] =~ 'PS-Adobe') - call delete('Xhardcopy') - set printoptions& + if has('postscript') + set printoptions=syntax:y + syn on + hardcopy > Xhardcopy + let lines = readfile('Xhardcopy') + call assert_true(len(lines) > 20) + call assert_true(lines[0] =~ 'PS-Adobe') + call delete('Xhardcopy') + set printoptions& + endif endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1094, +/**/ 1093, /**/ 1092,