From: Jouni Malinen Date: Sat, 20 Nov 2010 09:45:42 +0000 (+0200) Subject: edit: Fix completion of arguments other than the first one X-Git-Tag: hostap-1-bp~785 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4f13f925642ab232be08ed0304bdd737fd90b27;p=thirdparty%2Fhostap.git edit: Fix completion of arguments other than the first one --- diff --git a/src/utils/edit.c b/src/utils/edit.c index 62ba0e135..a43cf2fe6 100644 --- a/src/utils/edit.c +++ b/src/utils/edit.c @@ -364,7 +364,7 @@ static void complete(int list) end = cmdbuf_pos; start = end; - while (start > 0 && cmdbuf[start] != ' ') + while (start > 0 && cmdbuf[start - 1] != ' ') start--; plen = end - start;