Selaa lähdekoodia

Shell: Allow to parse command interactively when hitting Enter key

hanaa12G 1 vuosi sitten
vanhempi
commit
e6c363ac63
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Userland/Shell/Shell.cpp

+ 1 - 1
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;