mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Refactor.
This commit is contained in:
parent
5279ea97da
commit
63a71348f2
@ -124,13 +124,12 @@ do_tab_compl_unambiguous(struct dialog_data *dlg_data, struct list_head *history
|
|||||||
|
|
||||||
if (!match) {
|
if (!match) {
|
||||||
cur_len = strlen(entry->data);
|
cur_len = strlen(entry->data);
|
||||||
} else if (cur_len >= longest_common_match) {
|
longest_common_match = cur_len;
|
||||||
continue;
|
match = entry->data;
|
||||||
|
} else if (cur_len < longest_common_match) {
|
||||||
|
longest_common_match = cur_len;
|
||||||
|
match = entry->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We found the next shortest common match. */
|
|
||||||
longest_common_match = cur_len;
|
|
||||||
match = entry->data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!match) return;
|
if (!match) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user