diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-09-16 21:47:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-09-16 21:47:57 +0000 |
commit | 6b730e111c329caccbb16f08c5b6bbc41d3b5690 (patch) | |
tree | da7ce9db19f11624913c41b8d68002ad1c301c4d /src/spell.c | |
parent | 58071af793eee8eaaf4d3e60ddf652227bfe79c3 (diff) | |
download | vim-6b730e111c329caccbb16f08c5b6bbc41d3b5690.zip |
updated for version 7.0148
Diffstat (limited to 'src/spell.c')
-rw-r--r-- | src/spell.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c index 8f8c8929c..2562e4b8b 100644 --- a/src/spell.c +++ b/src/spell.c @@ -11293,6 +11293,7 @@ sug_compare __ARGS((const void *s1, const void *s2)); /* * 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; } |