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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user