Don't make moving the cursor update input

cpsdqs/unified-input
cpsdqs 7 years ago
parent 6ac00ad747
commit f6b47ee358
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 1
      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()

Loading…
Cancel
Save