1
0
forked from aniani/vim

patch 7.4.1563

Problem:    Partial test fails on windows.
Solution:   Return 1 or -1 from compare function.
This commit is contained in:
Bram Moolenaar
2016-03-15 11:05:45 +01:00
parent 9eb3bb2930
commit 790500a8e6
2 changed files with 4 additions and 2 deletions

View File

@@ -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()