Style fixes

This commit is contained in:
2025-12-10 19:10:12 +00:00
parent bc67d2e682
commit 774a21241e
2 changed files with 137 additions and 11 deletions

View File

@@ -183,7 +183,10 @@ void ts_collect_spans(Editor *editor) {
return;
}
editor->spans.mid_parse = true;
// TODO: Remove this lock and replace with an index
// modifier based on edits made in the `read_ts` function.
std::shared_lock lock(editor->knot_mtx);
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tree = ts_parser_parse(editor->parser, copy, tsinput);
lock.unlock();
if (copy)