diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index 9fce571e9d..5b74f7ff75 100644 --- a/Userland/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp @@ -2133,11 +2133,11 @@ bool Shell::read_single_line() if (line.is_empty()) return true; - run_command(line); - if (!has_history_event(line)) m_editor->add_to_history(line); + run_command(line); + return true; } }