Browse code

Don't break ties

John Hawthorn authored on 27/07/2014 06:42:02
Showing 1 changed files

  • fzy.c index c38d916..69a2e45 100644
... ...
@@ -64,8 +64,7 @@ static int cmpchoice(const void *p1, const void *p2) {
64 64
 	double score2 = choices_score[idx2];
65 65
 
66 66
 	if(score1 == score2)
67
-		/* break ties by length of result */
68
-		return strlen(choices[idx1]) - strlen(choices[idx2]);
67
+		return 0;
69 68
 	else if(score1 < score2)
70 69
 		return 1;
71 70
 	else