small fix in wmiimenu

This commit is contained in:
Sander van Dijk 2006-04-19 23:19:23 +00:00
parent 74a288bccd
commit dade08e735

View File

@ -239,8 +239,10 @@ handle_kpress(XKeyEvent * e)
sel++; sel++;
break; break;
case XK_Return: case XK_Return:
if(e->state & ShiftMask) if(e->state & ShiftMask) {
fprintf(stdout, "%s", text); if(text)
fprintf(stdout, "%s", text);
}
else if(sel >= 0) else if(sel >= 0)
fprintf(stdout, "%s", item.data[sel]); fprintf(stdout, "%s", item.data[sel]);
else if(text) else if(text)