diff options
author | taiyu <[email protected]> | 2015-08-18 02:48:56 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-08-18 02:48:56 -0700 |
commit | e9c3a9016f1df5877404721043967431afb2f5c7 (patch) | |
tree | 80fc0c129a98dbd955bb968c63d4d816d91fe6dd /sway/stringop.c | |
parent | 2f8a23924893663473e24c4ca3407e8e1005f37e (diff) |
config handles comments better
Diffstat (limited to 'sway/stringop.c')
-rw-r--r-- | sway/stringop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/stringop.c b/sway/stringop.c index 1dff97bf..cbaa69b9 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] == '#' && i == 0) { + if (str[i] == '#') { str[i] = '\0'; break; } |