aboutsummaryrefslogtreecommitdiff
path: root/sway/stringop.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-05 22:10:56 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-05 22:10:56 -0400
commitd0f1fb71d11a709c55b0ed56a9f35920c1282ec8 (patch)
tree32edb44c8f44e3cbe52043566c688de48b795730 /sway/stringop.c
parente07c77fbb78b1d57a19904f2f5a7309ddfc40955 (diff)
Flesh out some command parsing
This implements the `set` command from i3
Diffstat (limited to 'sway/stringop.c')
-rw-r--r--sway/stringop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/stringop.c b/sway/stringop.c
index 0e7ad6a9..4b05e657 100644
--- a/sway/stringop.c
+++ b/sway/stringop.c
@@ -40,7 +40,7 @@ char *strip_comments(char *str) {
} else if (str[i] == '\'' && !in_string) {
in_character = !in_character;
} else if (!in_character && !in_string) {
- if (str[i] == '#') {
+ if (str[i] == '#' && i == 0) {
str[i] = '\0';
break;
}