From e4f13f925642ab232be08ed0304bdd737fd90b27 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 20 Nov 2010 11:45:42 +0200 Subject: [PATCH] edit: Fix completion of arguments other than the first one --- src/utils/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;