From 868cb3ca71713014cc613b49f8521c01e60f366e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 18 Aug 2015 08:05:34 -0400 Subject: [PATCH] Revert "config handles comments better" This reverts commit e9c3a9016f1df5877404721043967431afb2f5c7. --- sway/stringop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }