Skip to content

Commit

Permalink
fix: correct wrong history behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Jun 28, 2024
1 parent e922124 commit 7cba7fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@
log = [...log.slice(0, -1), { type: "in", text: lines.join("\n"), incomplete: true }];
input = lastLine + input;
}
history.pop();
history.at(0) === input && history.shift();
index = -1;
event.preventDefault();
}
break;
Expand Down

0 comments on commit 7cba7fd

Please sign in to comment.