edit: Fix completion of arguments other than the first one

This commit is contained in:
Jouni Malinen 2010-11-20 11:45:42 +02:00
parent 73669f1b03
commit e4f13f9256

View File

@ -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;