mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-14 03:23:29 +00:00
Bugfix: When the first line behind TEXT was a comment, the start of the second line wasn't parsed
This commit is contained in:
parent
c9f1625908
commit
f7dcc664d7
@ -1327,7 +1327,7 @@ int extract_variable_text_internal(struct text_object *retval, const char *const
|
|||||||
strfold(p, 1);
|
strfold(p, 1);
|
||||||
} else if (*p == '#') {
|
} else if (*p == '#') {
|
||||||
char c;
|
char c;
|
||||||
if (remove_comment(p, &c) && p > orig_p && c == '\n') {
|
if (remove_comment(p, &c) && p >= orig_p && c == '\n') {
|
||||||
/* if remove_comment removed a newline, we need to 'back up' with p */
|
/* if remove_comment removed a newline, we need to 'back up' with p */
|
||||||
p--;
|
p--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user