Browse Source

edit: Fix completion of arguments other than the first one

Jouni Malinen 14 years ago
parent
commit
e4f13f9256
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/edit.c

+ 1 - 1
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;