From 34f3547c0d26fa4cf7f73678ace2c9c1c3b7605b Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Sat, 10 Apr 2010 20:11:20 +0200 Subject: [PATCH] Bugfix: When the first line behind TEXT was a comment, the start of the second line wasn't parsed --- src/core.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.cc b/src/core.cc index 0c3410ff..88fa8ece 100644 --- a/src/core.cc +++ b/src/core.cc @@ -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--; }