mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* complete.c (completion_matches): Fix duplicate completion matches
if there are more than two matches available.
This commit is contained in:
parent
b40bb2cb58
commit
28c1c01c53
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user