mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +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
6 changed files with 61 additions and 50 deletions
|
@ -244,7 +244,6 @@ private:
|
|||
#undef __ENUMERATE_SHELL_BUILTIN
|
||||
};
|
||||
|
||||
StringBuilder m_complete_line_builder;
|
||||
bool m_should_ignore_jobs_on_next_exit { false };
|
||||
pid_t m_pid { 0 };
|
||||
|
||||
|
@ -267,6 +266,8 @@ private:
|
|||
RefPtr<Line::Editor> m_editor;
|
||||
|
||||
bool m_default_constructed { false };
|
||||
|
||||
mutable bool m_last_continuation_state { false }; // false == not needed.
|
||||
};
|
||||
|
||||
static constexpr bool is_word_character(char c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue