From: Jouni Malinen Date: Sat, 20 Nov 2010 10:27:06 +0000 (+0200) Subject: edit: Really fix the completion of last character X-Git-Tag: hostap-1-bp~782 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9364990aced8345894129da185a3b6d65de47734;p=thirdparty%2Fhostap.git edit: Really fix the completion of last character The previous commit broke completion in various places. The proper way of handling the completion of full word is to verify whether there are more than one possible match at that point. --- diff --git a/src/utils/edit.c b/src/utils/edit.c index 93a3078e3..448d584df 100644 --- a/src/utils/edit.c +++ b/src/utils/edit.c @@ -377,7 +377,7 @@ static void complete(int list) } len = max_common_length(c); - if (len < plen) { + if (len <= plen && count > 1) { if (list) { edit_clear_line(); printf("\r");