* complete.c (completion_matches): Fix duplicate completion matches

if there are more than two matches available.
This commit is contained in:
Andrew V. Samoilov 2004-10-28 19:39:46 +00:00
parent b40bb2cb58
commit 28c1c01c53
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-10-29 Pavel Tsekov <ptsekov@gmx.net>
* complete.c (completion_matches): Fix duplicate completion matches
if there are more than two matches available.
2004-10-25 Andrew V. Samoilov <sav@bcs.zp.ua>
* cmd.c (select_unselect_cmd): Collect repeated code from

View File

@ -575,6 +575,7 @@ completion_matches (char *text, CompletionFunction entry_function)
j++;
if (j > matches)
break;
continue; /* Look for a run of equal strings */
} else
if (low > si) low = si;
if (i + 1 != j) /* So there's some gap */