uriel didn't understood dmenu code, he broke nearly everything
[dmenu.git] / main.c
diff --git a/main.c b/main.c
index 3203014..170a3e0 100644 (file)
--- a/main.c
+++ b/main.c
@@ -208,10 +208,8 @@ kpress(XKeyEvent * e) {
                }
                break;
        case XK_Return:
-               if(e->state & ShiftMask) {
-                       if(text)
-                               fprintf(stdout, "%s", text);
-               }
+               if((e->state & ShiftMask) && text)
+                       fprintf(stdout, "%s", text);
                else if(sel)
                        fprintf(stdout, "%s", sel->text);
                else if(text)