mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibSyntax+LibGUI: Let syntax highlighters assign folding regions
This commit is contained in:
parent
92b128e20a
commit
d169af117d
Notes:
sideshowbarker
2024-07-17 01:00:06 +09:00
Author: https://github.com/AtkinsSJ
Commit: d169af117d
Pull-request: https://github.com/SerenityOS/serenity/pull/17581
Reviewed-by: https://github.com/alimpfard
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