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

Shell: Make set_is_syntax_error() also copy the error location

This commit is contained in:
Ali Mohammad Pur 2021-05-01 12:43:12 +04:30 committed by Andreas Kling
parent f1d49d391e
commit 323a408d8c

View file

@ -1400,6 +1400,7 @@ public:
} }
virtual void set_is_syntax_error(const SyntaxError& error) override virtual void set_is_syntax_error(const SyntaxError& error) override
{ {
m_position = error.position();
m_is_cleared = error.m_is_cleared; m_is_cleared = error.m_is_cleared;
m_is_continuable = error.m_is_continuable; m_is_continuable = error.m_is_continuable;
m_syntax_error_text = error.error_text(); m_syntax_error_text = error.error_text();