summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-04-29 10:04:13 -0400
committerLibravatar GitHub <noreply@github.com>2017-04-29 10:04:13 -0400
commiteab29ca0ce9bb4571816d0fa23907356ce072b7d (patch)
tree642c6451498e32eaa66b7f1b863b971d1688cb2c /sway/commands.c
parentUpdate .build.yml (diff)
parentSupport specifying fewer than 5 colors (diff)
downloadsway-eab29ca0ce9bb4571816d0fa23907356ce072b7d.tar.gz
sway-eab29ca0ce9bb4571816d0fa23907356ce072b7d.tar.zst
sway-eab29ca0ce9bb4571816d0fa23907356ce072b7d.zip
Merge pull request #1201 from SirCmpwn/fix-colors
Support specifying fewer than 5 colors
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c2
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[] = {
250 */ 250 */
251struct cmd_results *add_color(const char *name, char *buffer, const char *color) { 251struct cmd_results *add_color(const char *name, char *buffer, const char *color) {
252 int len = strlen(color); 252 int len = strlen(color);
253 if (len != 7 && len != 9 ) { 253 if (len != 7 && len != 9) {
254 return cmd_results_new(CMD_INVALID, name, "Invalid color definition %s", color); 254 return cmd_results_new(CMD_INVALID, name, "Invalid color definition %s", color);
255 } 255 }
256 256