mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
LibSyntax+LibGUI: Let syntax highlighters assign folding regions
This commit is contained in:
parent
92b128e20a
commit
d169af117d
4 changed files with 19 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue