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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user