diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-15 11:05:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-15 11:05:45 +0100 |
commit | 790500a8e65bee295ef51a59dfa67ecbaab8ea17 (patch) | |
tree | db912adce069e1b31d818926d6da561a5fd30a3a /src/testdir/test_partial.vim | |
parent | 9eb3bb2930f804c1d428ea4527e136ac9cd9da43 (diff) | |
download | vim-git-790500a8e65bee295ef51a59dfa67ecbaab8ea17.tar.gz |
patch 7.4.1563v7.4.1563
Problem: Partial test fails on windows.
Solution: Return 1 or -1 from compare function.
Diffstat (limited to 'src/testdir/test_partial.vim')
-rw-r--r-- | src/testdir/test_partial.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_partial.vim b/src/testdir/test_partial.vim index 061f83966..998b23220 100644 --- a/src/testdir/test_partial.vim +++ b/src/testdir/test_partial.vim @@ -9,9 +9,9 @@ func MySort(up, one, two) return 0 endif if a:up - return a:one > a:two + return a:one > a:two ? 1 : -1 endif - return a:one < a:two + return a:one < a:two ? 1 : -1 endfunc func Test_partial_args() |