changeset 8208:c11aaa31a0ed v7.4.1397

commit https://github.com/vim/vim/commit/0bb6108eb4e1ecaed437bc507f514f5da7816d9e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 22 23:50:28 2016 +0100 patch 7.4.1397 Problem: Sort test fails on MS-Windows. Solution: Correct the compare function.
author Christian Brabandt <cb@256bit.org>
date Tue, 23 Feb 2016 00:00:04 +0100
parents f7395e9b6c54
children 30b7880d7522
files src/testdir/test_sort.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_sort.vim
+++ b/src/testdir/test_sort.vim
@@ -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()
--- a/src/version.c
+++ b/src/version.c
@@ -749,6 +749,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1397,
+/**/
     1396,
 /**/
     1395,