From 323a408d8c13827e9e24235e186cb6f42f803c83 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sat, 1 May 2021 12:43:12 +0430 Subject: [PATCH] Shell: Make set_is_syntax_error() also copy the error location --- Userland/Shell/AST.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Shell/AST.h b/Userland/Shell/AST.h index 20ef502033..a35f546ec6 100644 --- a/Userland/Shell/AST.h +++ b/Userland/Shell/AST.h @@ -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();