diff --git a/src/ChangeLog b/src/ChangeLog index e907e91e4..6e8e68977 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-10-29 Pavel Tsekov + + * complete.c (completion_matches): Fix duplicate completion matches + if there are more than two matches available. + 2004-10-25 Andrew V. Samoilov * cmd.c (select_unselect_cmd): Collect repeated code from diff --git a/src/complete.c b/src/complete.c index 83e9a8d54..583b3cbe7 100644 --- a/src/complete.c +++ b/src/complete.c @@ -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 */