mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibSyntax+LibGUI: Let syntax highlighters assign folding regions
This commit is contained in:
committed by
Andreas Kling
parent
92b128e20a
commit
d169af117d
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user