vim-patch:7.4.1563

Problem:    Partial test fails on windows.
Solution:   Return 1 or -1 from compare function.

790500a8e6
This commit is contained in:
Michael Ennen 2016-10-25 22:48:08 -07:00 committed by James McCoy
parent 521e45f2a8
commit 66922d89cc
2 changed files with 3 additions and 3 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()

View File

@ -879,7 +879,7 @@ static int included_patches[] = {
// 1566 NA
1565,
// 1564,
// 1563,
1563,
// 1562 NA
// 1561 NA
// 1560 NA