diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-13 13:03:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-13 13:03:11 +0200 |
commit | 3b8defd0a52fc1276816608e7bb24b628ab14c2e (patch) | |
tree | 51274af65eed16671abb4eceb00a7949c6f16699 /src/testdir/test_diffmode.vim | |
parent | bd9a53c06c8869ad811cb3dd01a309c9be7d7a63 (diff) |
patch 8.1.0375: cannot use diff mode with Cygwin diff.exev8.1.0375
Problem: Cannot use diff mode with Cygwin diff.exe. (Igor Forca)
Solution: Skip over unrecognized lines in the diff output.
Diffstat (limited to 'src/testdir/test_diffmode.vim')
-rw-r--r-- | src/testdir/test_diffmode.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_diffmode.vim b/src/testdir/test_diffmode.vim index c3c1eaf4a5..0022a73b3f 100644 --- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -519,7 +519,9 @@ func Test_diffexpr() endif func DiffExpr() - silent exe '!diff ' . v:fname_in . ' ' . v:fname_new . '>' . v:fname_out + " Prepent some text to check diff type detection + call writefile(['warning', ' message'], v:fname_out) + silent exe '!diff ' . v:fname_in . ' ' . v:fname_new . '>>' . v:fname_out endfunc set diffexpr=DiffExpr() set diffopt=foldcolumn:0 |