Parcourir la source

edit: Fix completion of arguments other than the first one

Jouni Malinen il y a 14 ans
Parent
commit
e4f13f9256
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;