0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.0148

This commit is contained in:
Bram Moolenaar
2005-09-16 21:47:57 +00:00
parent 58071af793
commit 6b730e111c
8 changed files with 559 additions and 280 deletions

View File

@@ -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;
}