From f6b47ee3585561edc61b31e32a1b6fa219cb13e2 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Wed, 13 Sep 2017 14:01:30 +0200 Subject: [PATCH] Don't make moving the cursor update input --- js/demo.js | 1 - 1 file changed, 1 deletion(-) 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()