diff options
author | 2016-11-02 21:07:04 +0100 | |
---|---|---|
committer | 2016-11-02 21:07:04 +0100 | |
commit | 58eb7ac19fe436737babcbd1effd41ef96af6632 (patch) | |
tree | a3db9567c63b2b2bae27c17d3a103c8f2786a9f7 /sway/commands.c | |
parent | add bar colours for focused_(workspace|statusline|separator) (diff) | |
download | sway-58eb7ac19fe436737babcbd1effd41ef96af6632.tar.gz sway-58eb7ac19fe436737babcbd1effd41ef96af6632.tar.zst sway-58eb7ac19fe436737babcbd1effd41ef96af6632.zip |
change bar colors from char[10] to *char
This commit removes has_* booleans from bar color struct. It also
generalizes of functions in commands/bar/colors.c.
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 872e9fc3..de29a7af 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -255,6 +255,7 @@ struct cmd_results *add_color(const char *name, char *buffer, const char *color) | |||
255 | buffer[7] = 'f'; | 255 | buffer[7] = 'f'; |
256 | buffer[8] = 'f'; | 256 | buffer[8] = 'f'; |
257 | } | 257 | } |
258 | buffer[9] = '\0'; | ||
258 | 259 | ||
259 | return NULL; | 260 | return NULL; |
260 | } | 261 | } |