mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00: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
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