diff --git a/js/demo.js b/js/demo.js index 0f3e78a..37cd24f 100644 --- a/js/demo.js +++ b/js/demo.js @@ -740,7 +740,6 @@ class DemoShell { this.cursorPos-- if (this.cursorPos < 0) this.cursorPos = 0 } else if (action === 'move-cursor-x') { - this.copyFromHistoryIndex() this.cursorPos = Math.max(0, Math.min(this.history[0].length, this.cursorPos + args[0])) } else if (action === 'delete-line') { this.copyFromHistoryIndex()