]> git.sur5r.net Git - i3/i3/commitdiff
use 'break' instead of 'return', the generated code will end up in a switch statement
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 17 Aug 2011 14:12:48 +0000 (16:12 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 17 Aug 2011 14:12:48 +0000 (16:12 +0200)
src/cmdparse.y

index 891f876aaacb535e85e296b45a46c482d6e11a4c..c38f660fb17b21210983a859d561766a2572dd29 100644 (file)
@@ -735,13 +735,13 @@ move:
         free($3);
 
         if (!output)
-            return 0;
+            break;
 
         /* get visible workspace on output */
         Con *ws = NULL;
         GREP_FIRST(ws, output_get_content(output->con), workspace_is_visible(child));
         if (!ws)
-            return 0;
+            break;
 
         TAILQ_FOREACH(current, &owindows, owindows) {
             printf("matching: %p / %s\n", current->con, current->con->name);