浏览代码

js: Add lines to history

Linus Groh 5 年之前
父节点
当前提交
79539378c6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/js.cpp

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