1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:07:46 +00:00

Shell: Do not parse history events in scripts

That makes no sense!
This commit is contained in:
AnotherTest 2021-03-05 16:14:53 +03:30 committed by Andreas Kling
parent cad7865ad1
commit a303b69caa
4 changed files with 11 additions and 9 deletions

View file

@ -128,8 +128,8 @@ public:
RefPtr<Line::Editor> editor() const { return m_editor; }
struct LocalFrame {
LocalFrame(const String& name, HashMap<String, RefPtr<AST::Value>> variables)
: name(name)
LocalFrame(String name, HashMap<String, RefPtr<AST::Value>> variables)
: name(move(name))
, local_variables(move(variables))
{
}
@ -243,7 +243,7 @@ public:
return err;
}
void possibly_print_error() const;
bool is_control_flow(ShellError error)
static bool is_control_flow(ShellError error)
{
switch (error) {
case ShellError::InternalControlFlowBreak: