LibSyntax+LibGUI: Let syntax highlighters assign folding regions

This commit is contained in:
Sam Atkins 2023-02-23 15:33:48 +00:00 committed by Andreas Kling
commit d169af117d
Notes: sideshowbarker 2024-07-17 01:00:06 +09:00
4 changed files with 19 additions and 0 deletions

View file

@ -2483,4 +2483,10 @@ void TextEditor::on_search_results(GUI::TextRange current, Vector<GUI::TextRange
update();
}
void TextEditor::highlighter_did_set_folding_regions(Vector<GUI::TextDocumentFoldingRegion> folding_regions)
{
document().set_folding_regions(move(folding_regions));
recompute_all_visual_lines();
}
}