0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04: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()

View File

@@ -748,6 +748,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1397,
/**/
1396,
/**/