From 79539378c64ad02ee984818ccde3c954330ebf0c Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 4 Apr 2020 22:27:21 +0100 Subject: [PATCH] js: Add lines to history --- Userland/js.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/js.cpp b/Userland/js.cpp index 946fed5c16..a09f91ef06 100644 --- a/Userland/js.cpp +++ b/Userland/js.cpp @@ -75,6 +75,7 @@ String read_next_piece() prompt_builder.append(" "); String line = editor->get_line(prompt_builder.build()); + editor->add_to_history(line); piece.append(line); auto lexer = JS::Lexer(line);