|
|
@ -740,7 +740,6 @@ class DemoShell { |
|
|
|
this.cursorPos-- |
|
|
|
this.cursorPos-- |
|
|
|
if (this.cursorPos < 0) this.cursorPos = 0 |
|
|
|
if (this.cursorPos < 0) this.cursorPos = 0 |
|
|
|
} else if (action === 'move-cursor-x') { |
|
|
|
} else if (action === 'move-cursor-x') { |
|
|
|
this.copyFromHistoryIndex() |
|
|
|
|
|
|
|
this.cursorPos = Math.max(0, Math.min(this.history[0].length, this.cursorPos + args[0])) |
|
|
|
this.cursorPos = Math.max(0, Math.min(this.history[0].length, this.cursorPos + args[0])) |
|
|
|
} else if (action === 'delete-line') { |
|
|
|
} else if (action === 'delete-line') { |
|
|
|
this.copyFromHistoryIndex() |
|
|
|
this.copyFromHistoryIndex() |
|
|
|