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
Notes: sideshowbarker 2024-07-18 18:49:17 +09:00

View file

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