mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 23:59:53 +00:00
Shell: Make <return> go to a new line when the command is incomplete
"incomplete" meaning that it has a syntax error that can be recovered from by continuing the input.
This commit is contained in:
parent
48d2545572
commit
5325d6871d
Notes:
sideshowbarker
2024-07-19 00:59:03 +09:00
Author: https://github.com/alimpfard
Commit: 5325d6871d
Pull-request: https://github.com/SerenityOS/serenity/pull/4359
Issue: https://github.com/SerenityOS/serenity/issues/4345
Issue: https://github.com/SerenityOS/serenity/issues/4358
6 changed files with 61 additions and 50 deletions
|
@ -61,6 +61,7 @@ int main(int argc, char** argv)
|
|||
});
|
||||
|
||||
editor = Line::Editor::construct();
|
||||
editor->initialize();
|
||||
|
||||
auto shell = Shell::Shell::construct(*editor);
|
||||
s_shell = shell.ptr();
|
||||
|
@ -81,7 +82,6 @@ int main(int argc, char** argv)
|
|||
}
|
||||
#endif
|
||||
|
||||
editor->initialize();
|
||||
shell->termios = editor->termios();
|
||||
shell->default_termios = editor->default_termios();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue