mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.1094
Problem: Test for :hardcopy fails on MS-Windows. Solution: Check for the +postscript feature.
This commit is contained in:
parent
24c4d539ee
commit
ccb80989f2
@ -45,6 +45,7 @@ endfunc
|
|||||||
" Test that :hardcopy produces a non-empty file.
|
" Test that :hardcopy produces a non-empty file.
|
||||||
" We don't check much of the contents.
|
" We don't check much of the contents.
|
||||||
func Test_with_syntax()
|
func Test_with_syntax()
|
||||||
|
if has('postscript')
|
||||||
set printoptions=syntax:y
|
set printoptions=syntax:y
|
||||||
syn on
|
syn on
|
||||||
hardcopy > Xhardcopy
|
hardcopy > Xhardcopy
|
||||||
@ -53,4 +54,5 @@ func Test_with_syntax()
|
|||||||
call assert_true(lines[0] =~ 'PS-Adobe')
|
call assert_true(lines[0] =~ 'PS-Adobe')
|
||||||
call delete('Xhardcopy')
|
call delete('Xhardcopy')
|
||||||
set printoptions&
|
set printoptions&
|
||||||
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1094,
|
||||||
/**/
|
/**/
|
||||||
1093,
|
1093,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user