Fix error in handling of padding in get_changed_ranges

This commit is contained in:
Max Brunsfeld 2017-12-29 18:02:06 -08:00
parent f3c3fd3c9e
commit 1e04489e50
2 changed files with 8 additions and 2 deletions

View file

@ -94,6 +94,10 @@ void ts_document_edit(TSDocument *self, TSInputEdit edit) {
edit.bytes_removed = max_bytes - edit.start_byte;
ts_tree_edit(self->tree, &edit);
if (self->parser.print_debugging_graphs) {
ts_tree_print_dot_graph(self->tree, self->parser.language, stderr);
}
}
void ts_document_parse(TSDocument *self) {