X-Git-Url: http://git.maemo.org/git/?p=monky;a=blobdiff_plain;f=src%2Fcore.c;h=32aa33a030b222da416d272f113ceb84f66f20c2;hp=acb41b0c4047864caf9e52f32bc54a3514caad21;hb=f7dcc664d730dcead238b72bf4dab512717d2730;hpb=c9f1625908fff54fc1c2d717ab36787ce1e54c74 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--; }