diff options
author | Drew DeVault <[email protected]> | 2017-04-29 09:56:07 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2017-04-29 09:56:07 -0400 |
commit | 02812a2e4da9f274c5957975fdbb4a4a58b20a69 (patch) | |
tree | 642c6451498e32eaa66b7f1b863b971d1688cb2c /sway/commands.c | |
parent | 1376de4f46ed13de133146b6d87048ce93eae1e8 (diff) |
Support specifying fewer than 5 colors
This doesn't work, I'm not sure why. The color structs definitely get
changed but if you specify fewer than 5, it renders with the defaults.
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 01e5e6b5..509fd1a8 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -250,7 +250,7 @@ static struct cmd_handler bar_handlers[] = { */ struct cmd_results *add_color(const char *name, char *buffer, const char *color) { int len = strlen(color); - if (len != 7 && len != 9 ) { + if (len != 7 && len != 9) { return cmd_results_new(CMD_INVALID, name, "Invalid color definition %s", color); } |