projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c9f1625
)
Bugfix: When the first line behind TEXT was a comment, the start of the second line...
author
Nikolas Garofil
<nikolas@garofil.be>
Sat, 10 Apr 2010 18:06:04 +0000
(20:06 +0200)
committer
Nikolas Garofil
<nikolas@garofil.be>
Sat, 10 Apr 2010 18:06:04 +0000
(20:06 +0200)
src/core.c
patch
|
blob
|
history
diff --git
a/src/core.c
b/src/core.c
index
acb41b0
..
32aa33a
100644
(file)
--- 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--;
}