mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Only set match the first time since we are only interested in the common
substring at the start, which will be the same for all matches.
This commit is contained in:
parent
aad46173ae
commit
093800d6fb
@ -124,10 +124,10 @@ do_tab_compl_unambiguous(struct dialog_data *dlg_data, struct list_head *history
|
||||
|
||||
if (!match) {
|
||||
longest_common_match = strlen(entry->data);
|
||||
match = entry->data;
|
||||
} else if (cur_len < longest_common_match) {
|
||||
longest_common_match = cur_len;
|
||||
}
|
||||
match = entry->data;
|
||||
}
|
||||
|
||||
if (!match) return;
|
||||
|
Loading…
Reference in New Issue
Block a user