diff options
-rw-r--r-- | sway/commands.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/commands.c b/sway/commands.c index 80770e87..03c682d7 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -1182,13 +1182,12 @@ enum cmd_status handle_command(char *_exec) { } enum cmd_status config_command(char *exec) { - sway_log(L_INFO, "handling config command '%s'", exec); enum cmd_status status = CMD_SUCCESS; int argc; char **argv = split_args(exec, &argc); - if (!argc) { - goto cleanup; - } + if (!argc) goto cleanup; + + sway_log(L_INFO, "handling config command '%s'", exec); // Endblock if (**argv == '}') { status = CMD_BLOCK_END; |