mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Revert "config handles comments better"
This reverts commit e9c3a9016f
.
This commit is contained in:
parent
2139001c9f
commit
868cb3ca71
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue