history works like its supposed to

This commit is contained in:
b1ek 2023-03-13 01:24:44 +10:00
parent d8b2c061df
commit 0bfaf89c9b
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 2 deletions

View File

@ -25,14 +25,14 @@ function pr_char(char) {
function exec_cmd() {
let c = cmd;
reset_cmd();
history.push(c);
history.unshift(c);
terminal.writeln('zsh: command not found: ' + c);
print_prompt();
history_pos = 0;
}
function print_prompt() {
terminal.write(prompt);
history_pos = 0;
}
function reprint_prompt() {