mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
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:
@@ -45,12 +45,14 @@ 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()
|
||||||
set printoptions=syntax:y
|
if has('postscript')
|
||||||
syn on
|
set printoptions=syntax:y
|
||||||
hardcopy > Xhardcopy
|
syn on
|
||||||
let lines = readfile('Xhardcopy')
|
hardcopy > Xhardcopy
|
||||||
call assert_true(len(lines) > 20)
|
let lines = readfile('Xhardcopy')
|
||||||
call assert_true(lines[0] =~ 'PS-Adobe')
|
call assert_true(len(lines) > 20)
|
||||||
call delete('Xhardcopy')
|
call assert_true(lines[0] =~ 'PS-Adobe')
|
||||||
set printoptions&
|
call delete('Xhardcopy')
|
||||||
|
set printoptions&
|
||||||
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -590,7 +590,7 @@ static int included_patches[] = {
|
|||||||
// 1097,
|
// 1097,
|
||||||
// 1096,
|
// 1096,
|
||||||
// 1095 NA
|
// 1095 NA
|
||||||
// 1094,
|
1094,
|
||||||
1093,
|
1093,
|
||||||
1092,
|
1092,
|
||||||
1091,
|
1091,
|
||||||
|
Reference in New Issue
Block a user