]> granicus.if.org Git - vim/commitdiff
patch 7.4.1397 v7.4.1397
authorBram Moolenaar <Bram@vim.org>
Mon, 22 Feb 2016 22:50:28 +0000 (23:50 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 22 Feb 2016 22:50:28 +0000 (23:50 +0100)
Problem:    Sort test fails on MS-Windows.
Solution:   Correct the compare function.

src/testdir/test_sort.vim
src/version.c

index 68021f6de6be40b73ab5b0426fd9fda5a52cc952..2b097ceb96374cd0126fa8f03beadc09873f483c 100644 (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()
index a476aaee5fcd4accfe4fcc83ca110fb3f03c4fb2..b8cd1113357aed3e6fd93dbe8d50220078a16046 100644 (file)
@@ -748,6 +748,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1397,
 /**/
     1396,
 /**/