1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +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:
Nikolas Garofil 2010-04-10 20:11:20 +02:00
parent 939985042a
commit 34f3547c0d

View File

@ -1819,7 +1819,7 @@ int extract_variable_text_internal(struct text_object *retval, const char *const
strfold(p, 1);
} else if (*p == '#') {
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 */
p--;
}