Maaku icon indicating copy to clipboard operation
Maaku copied to clipboard

Trailing tilde on a line causes startLine, startColumn, endLine and endColumn to return 0

Open eliyap opened this issue 4 years ago • 0 comments

I'm not sure if this is a bug with Maaku or with the underlying cmark-gfm library.

I see that Maaku is simply calling into the underlying c function cmark_node_get_start_column(cmark_node *node), which in turn is simply referencing a value:

int cmark_node_get_start_column(cmark_node *node) {
  if (node == NULL) {
    return 0;
  }
  return node->start_column;
}

I am quite sure that the node I am accessing is not NULL, as cmark_node_get_string_content does return a value.

eliyap avatar Jan 24 '21 20:01 eliyap