From e6c363ac63f5dd1eab21a662d993787f88f76c45 Mon Sep 17 00:00:00 2001 From: hanaa12G Date: Thu, 9 Nov 2023 20:08:13 +0700 Subject: [PATCH] Shell: Allow to parse command interactively when hitting Enter key --- Userland/Shell/Shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index 17c3d1c12c..62454ac157 100644 --- a/Userland/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp @@ -2149,7 +2149,7 @@ bool Shell::has_history_event(StringView source) void Shell::setup_keybinds() { m_editor->register_key_input_callback('\n', [this](Line::Editor& editor) { - auto ast = parse(editor.line(), false); + auto ast = parse(editor.line(), m_is_interactive); if (ast && ast->is_syntax_error() && ast->syntax_error_node().is_continuable()) return true;