mirror of
https://github.com/NickHu/sway
synced 2024-12-28 22:23:30 +01:00
dont log empty config lines
This commit is contained in:
parent
0d51f62224
commit
7672886cb5
1 changed files with 3 additions and 4 deletions
|
@ -1182,13 +1182,12 @@ enum cmd_status handle_command(char *_exec) {
|
||||||
}
|
}
|
||||||
|
|
||||||
enum cmd_status config_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;
|
enum cmd_status status = CMD_SUCCESS;
|
||||||
int argc;
|
int argc;
|
||||||
char **argv = split_args(exec, &argc);
|
char **argv = split_args(exec, &argc);
|
||||||
if (!argc) {
|
if (!argc) goto cleanup;
|
||||||
goto cleanup;
|
|
||||||
}
|
sway_log(L_INFO, "handling config command '%s'", exec);
|
||||||
// Endblock
|
// Endblock
|
||||||
if (**argv == '}') {
|
if (**argv == '}') {
|
||||||
status = CMD_BLOCK_END;
|
status = CMD_BLOCK_END;
|
||||||
|
|
Loading…
Reference in a new issue