1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibLine: Handle initialize() internally

This patch makes initialize() transparent to the users, but exposes it
publicly, as the users might need a copy of the default termios (i.e.
Shell)
This commit is contained in:
AnotherTest 2020-04-29 01:46:19 +04:30 committed by Andreas Kling
parent 7ecf29f206
commit 9473733d7a
Notes: sideshowbarker 2024-07-19 07:12:29 +09:00
4 changed files with 15 additions and 8 deletions

View file

@ -430,7 +430,6 @@ int main(int argc, char** argv)
s_editor->resized();
});
s_editor->initialize();
s_editor->on_display_refresh = [syntax_highlight](Line::Editor& editor) {
auto stylize = [&](Line::Span span, Line::Style styles) {
if (syntax_highlight)