From f7dcc664d730dcead238b72bf4dab512717d2730 Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Sat, 10 Apr 2010 20:06:04 +0200 Subject: [PATCH] Bugfix: When the first line behind TEXT was a comment, the start of the second line wasn't parsed --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index acb41b0..32aa33a 100644 --- a/src/core.c +++ b/src/core.c @@ -1327,7 +1327,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--; } -- 1.7.9.5