0
0
mirror of https://github.com/vim/vim.git synced 2025-11-14 23:04:02 -05:00

patch 7.4.1397

Problem:    Sort test fails on MS-Windows.
Solution:   Correct the compare function.
This commit is contained in:
Bram Moolenaar
2016-02-22 23:50:28 +01:00
parent 1daae446e5
commit 0bb6108eb4
2 changed files with 4 additions and 2 deletions

View File

@@ -2,11 +2,11 @@
:func Compare1(a, b) abort
call sort(range(3), 'Compare2')
return a:a ># a:b
return a:a - a:b
:endfunc
:func Compare2(a, b) abort
return a:a <# a:b
return a:a - a:b
:endfunc
func Test_sort_strings()