summaryrefslogtreecommitdiff
path: root/src/iterator.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-11-05 12:48:26 -0500
committerGitHub <noreply@github.com>2017-11-05 12:48:26 -0500
commitb40ecdcd459bff13ecdb0ab586abf22fb223490f (patch)
tree0177899c8713b2bf13c437c83dabd54032463d6e /src/iterator.c
parent5da792fc3714f66a88aabb5d13cb0eed674cb6c5 (diff)
parent1326fd0d8d945b1eb33c5c5d2f536c6fda0201d1 (diff)
Merge pull request #228 from github/upstream/inline-sourcepos
Add sourcepos info for inlines
Diffstat (limited to 'src/iterator.c')
-rw-r--r--src/iterator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/iterator.c b/src/iterator.c
index 24423a2..f5cd802 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -106,6 +106,7 @@ void cmark_consolidate_text_nodes(cmark_node *root) {
while (tmp && tmp->type == CMARK_NODE_TEXT) {
cmark_iter_next(iter); // advance pointer
cmark_strbuf_put(&buf, tmp->as.literal.data, tmp->as.literal.len);
+ cur->end_column = tmp->end_column;
next = tmp->next;
cmark_node_free(tmp);
tmp = next;