forked from tools/josh
parent
7da2c7e16d
commit
ca6eefee1f
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fwdekker.com",
|
||||
"version": "1.11.0",
|
||||
"version": "1.11.1",
|
||||
"description": "The source code of [my personal website](https://fwdekker.com/).",
|
||||
"author": "Felix W. Dekker",
|
||||
"repository": {
|
||||
|
|
|
@ -362,7 +362,7 @@ export class InputHistory {
|
|||
* @param entry the entry to add
|
||||
*/
|
||||
addEntry(entry: string): void {
|
||||
if (entry.trim() !== "")
|
||||
if (entry.trim() !== "" && entry.trim() !== this.history[this.history.length - 1]?.trim())
|
||||
this.history.unshift(entry);
|
||||
|
||||
this.index = -1;
|
||||
|
|
Loading…
Reference in New Issue