Skip to content

Commit 0bb6108

Browse files
committed
patch 7.4.1397
Problem: Sort test fails on MS-Windows. Solution: Correct the compare function.
1 parent 1daae44 commit 0bb6108

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/testdir/test_sort.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
:func Compare1(a, b) abort
44
call sort(range(3), 'Compare2')
5-
return a:a ># a:b
5+
return a:a - a:b
66
:endfunc
77

88
:func Compare2(a, b) abort
9-
return a:a <# a:b
9+
return a:a - a:b
1010
:endfunc
1111

1212
func Test_sort_strings()

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1397,
751753
/**/
752754
1396,
753755
/**/

0 commit comments

Comments
 (0)