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
commit 0676bd4afc
Notes: sideshowbarker 2024-07-19 03:17:45 +09:00
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;
};