diff options
author | 2015-09-18 08:33:28 -0700 | |
---|---|---|
committer | 2015-09-18 08:33:28 -0700 | |
commit | 7672886cb5927977617d274ebaec4a3840df0a5d (patch) | |
tree | 539e5031c1b44bd72ee7555eb19350c68ce73739 /sway | |
parent | merge + no c_extensions (diff) | |
download | sway-7672886cb5927977617d274ebaec4a3840df0a5d.tar.gz sway-7672886cb5927977617d274ebaec4a3840df0a5d.tar.zst sway-7672886cb5927977617d274ebaec4a3840df0a5d.zip |
dont log empty config lines
Diffstat (limited to 'sway')
-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) { | |||
1182 | } | 1182 | } |
1183 | 1183 | ||
1184 | enum cmd_status config_command(char *exec) { | 1184 | enum cmd_status config_command(char *exec) { |
1185 | sway_log(L_INFO, "handling config command '%s'", exec); | ||
1186 | enum cmd_status status = CMD_SUCCESS; | 1185 | enum cmd_status status = CMD_SUCCESS; |
1187 | int argc; | 1186 | int argc; |
1188 | char **argv = split_args(exec, &argc); | 1187 | char **argv = split_args(exec, &argc); |
1189 | if (!argc) { | 1188 | if (!argc) goto cleanup; |
1190 | goto cleanup; | 1189 | |
1191 | } | 1190 | sway_log(L_INFO, "handling config command '%s'", exec); |
1192 | // Endblock | 1191 | // Endblock |
1193 | if (**argv == '}') { | 1192 | if (**argv == '}') { |
1194 | status = CMD_BLOCK_END; | 1193 | status = CMD_BLOCK_END; |