diff --git a/src/bfu/inphist.c b/src/bfu/inphist.c index f1aef0f1e..6af8f1d73 100644 --- a/src/bfu/inphist.c +++ b/src/bfu/inphist.c @@ -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;