aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-18 08:05:34 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-18 08:05:34 -0400
commit868cb3ca71713014cc613b49f8521c01e60f366e (patch)
tree7027d3a1ce019d6b2d66ebf125788036e17d4324
parent2139001c9f61a84ed1ac581a54bb2bde68928afd (diff)
downloadsway-868cb3ca71713014cc613b49f8521c01e60f366e.tar.xz
Revert "config handles comments better"
This reverts commit e9c3a9016f1df5877404721043967431afb2f5c7.
-rw-r--r--sway/stringop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/stringop.c b/sway/stringop.c
index 00cc32b8..624c8401 100644
--- a/sway/stringop.c
+++ b/sway/stringop.c
@@ -41,7 +41,7 @@ void 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;
}