1
0
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:
Miciah Dashiel Butler Masters 2005-12-16 23:59:04 +00:00 committed by Miciah Dashiel Butler Masters
parent aad46173ae
commit 093800d6fb

View File

@ -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;