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:
@@ -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()
|
||||
|
@@ -748,6 +748,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1397,
|
||||
/**/
|
||||
1396,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user