Mercurial > vim
diff src/spell.c @ 529:0d6092bb72e6
updated for version 7.0148
author | vimboss |
---|---|
date | Fri, 16 Sep 2005 21:47:57 +0000 |
parents | a7ae7e043e43 |
children | 7052f11a3dc9 |
line wrap: on
line diff
--- a/src/spell.c +++ b/src/spell.c @@ -11293,6 +11293,7 @@ sug_compare __ARGS((const void *s1, cons /* * Function given to qsort() to sort the suggestions on st_score. + * First on "st_score", then "st_altscore" then alphabetically. */ static int #ifdef __BORLANDC__ @@ -11307,7 +11308,11 @@ sug_compare(s1, s2) int n = p1->st_score - p2->st_score; if (n == 0) - return p1->st_altscore - p2->st_altscore; + { + n = p1->st_altscore - p2->st_altscore; + if (n == 0) + n = STRICMP(p1->st_word, p2->st_word); + } return n; }