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

Shell: Mark AST::Background as would_execute if its subnode does

This commit is contained in:
AnotherTest 2020-08-22 13:48:02 +04:30 committed by Andreas Kling
parent 2fd9e72264
commit 0676bd4afc
2 changed files with 17 additions and 1 deletions

View file

@ -458,6 +458,7 @@ private:
virtual void highlight_in_editor(Line::Editor&, Shell&, HighlightMetadata = {}) override;
virtual HitTestResult hit_test_position(size_t) override;
virtual String class_name() const override { return "Background"; }
virtual bool would_execute() const override { return m_command->would_execute(); }
RefPtr<Node> m_command;
};