From d0f1fb71d11a709c55b0ed56a9f35920c1282ec8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 5 Aug 2015 22:10:56 -0400 Subject: Flesh out some command parsing This implements the `set` command from i3 --- sway/stringop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/stringop.c') 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; } -- cgit v1.2.3