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:
parent
7ecf29f206
commit
9473733d7a
Notes:
sideshowbarker
2024-07-19 07:12:29 +09:00
Author: https://github.com/alimpfard
Commit: 9473733d7a
Pull-request: https://github.com/SerenityOS/serenity/pull/2009
Issue: https://github.com/SerenityOS/serenity/issues/2008
4 changed files with 15 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue