Hello, when tab is pressed, one wants obviously to add an argument and has to press space before that. The attached patch does it for you. Have a nice week-end.
diff -up a/dmenu.c b/dmenu.c
--- a/dmenu.c Fri Aug 26 19:13:17 2011
+++ b/dmenu.c Fri Aug 26 19:10:56 2011
@@ -353,6 +353,7 @@ keypress(XKeyEvent *ev) {
case XK_Tab:
if(!sel)
return;
+ strcat(sel->text, " ");
strncpy(text, sel->text, sizeof text);
cursor = strlen(text);
match(True);
