1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Refactor.

This commit is contained in:
Miciah Dashiel Butler Masters 2005-12-16 23:50:17 +00:00 committed by Miciah Dashiel Butler Masters
parent 63a71348f2
commit aad46173ae

View File

@ -123,13 +123,11 @@ do_tab_compl_unambiguous(struct dialog_data *dlg_data, struct list_head *history
continue; continue;
if (!match) { if (!match) {
cur_len = strlen(entry->data); longest_common_match = strlen(entry->data);
longest_common_match = cur_len;
match = entry->data;
} else if (cur_len < longest_common_match) { } else if (cur_len < longest_common_match) {
longest_common_match = cur_len; longest_common_match = cur_len;
match = entry->data;
} }
match = entry->data;
} }
if (!match) return; if (!match) return;