diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-12-14 23:09:17 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-15 20:58:32 +0100 |
commit | 4668dfa7c7008bbdb826fc3c14c29b5b5610a788 (patch) | |
tree | 5ddd42d34fe66070ec49c07fbc051e37192be645 /Shell/AST.h | |
parent | 72bd672da0a97d1194a9da0077afe5f663fed1c1 (diff) | |
download | serenity-4668dfa7c7008bbdb826fc3c14c29b5b5610a788.zip |
Shell: Make Subshell actually create a subshell
Previously, a "subshell" would just be executed in the parent shell.
Diffstat (limited to 'Shell/AST.h')
-rw-r--r-- | Shell/AST.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Shell/AST.h b/Shell/AST.h index 4f54c1bda7..0554c24d57 100644 --- a/Shell/AST.h +++ b/Shell/AST.h @@ -1050,7 +1050,6 @@ private: virtual void highlight_in_editor(Line::Editor&, Shell&, HighlightMetadata = {}) override; virtual HitTestResult hit_test_position(size_t) override; virtual bool is_list() const override { return true; } - virtual bool would_execute() const override { return m_left->would_execute() || m_right->would_execute(); } NonnullRefPtr<Node> m_left; NonnullRefPtr<Node> m_right; @@ -1071,7 +1070,7 @@ private: virtual RefPtr<Value> run(RefPtr<Shell>) override; virtual void highlight_in_editor(Line::Editor&, Shell&, HighlightMetadata = {}) override; virtual HitTestResult hit_test_position(size_t) override; - virtual bool would_execute() const override { return true; } + virtual bool would_execute() const override { return false; } RefPtr<AST::Node> m_block; }; |