From aad46173aeb579ae09bfba8abe7e459829f2ed81 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Fri, 16 Dec 2005 23:50:17 +0000 Subject: [PATCH] Refactor. --- src/bfu/inphist.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bfu/inphist.c b/src/bfu/inphist.c index 43f406b7c..f1aef0f1e 100644 --- a/src/bfu/inphist.c +++ b/src/bfu/inphist.c @@ -123,13 +123,11 @@ do_tab_compl_unambiguous(struct dialog_data *dlg_data, struct list_head *history continue; if (!match) { - cur_len = strlen(entry->data); - longest_common_match = cur_len; - match = entry->data; + longest_common_match = strlen(entry->data); } else if (cur_len < longest_common_match) { longest_common_match = cur_len; - match = entry->data; } + match = entry->data; } if (!match) return;