summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iterator.c b/src/iterator.c
index eb7b49c..c6faf99 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -132,7 +132,7 @@ void cmark_consolidate_text_nodes(cmark_node *root)
cmark_strbuf_puts(&buf, cmark_node_get_literal(cur));
tmp = cur->next;
while (tmp && tmp->type == CMARK_NODE_TEXT) {
- cmark_iter_get_node(iter); // advance pointer
+ cmark_iter_next(iter); // advance pointer
cmark_strbuf_puts(&buf, cmark_node_get_literal(tmp));
next = tmp->next;
cmark_node_free(tmp);