vim-patch:7.4.1094

Problem:    Test for :hardcopy fails on MS-Windows.
Solution:   Check for the +postscript feature.

ccb80989f2
This commit is contained in:
Michael Ennen
2016-05-21 00:00:38 -07:00
parent 7b57ab1480
commit 7db5ad4e4d
2 changed files with 59 additions and 57 deletions

View File

@@ -45,6 +45,7 @@ endfunc
" Test that :hardcopy produces a non-empty file.
" We don't check much of the contents.
func Test_with_syntax()
if has('postscript')
set printoptions=syntax:y
syn on
hardcopy > Xhardcopy
@@ -53,4 +54,5 @@ func Test_with_syntax()
call assert_true(lines[0] =~ 'PS-Adobe')
call delete('Xhardcopy')
set printoptions&
endif
endfunc

View File

@@ -590,7 +590,7 @@ static int included_patches[] = {
// 1097,
// 1096,
// 1095 NA
// 1094,
1094,
1093,
1092,
1091,