Commit 741df250 authored by serapath's avatar serapath

FIX missing execute->commands.script reference update

parent add7b06b
...@@ -392,7 +392,7 @@ class Terminal { ...@@ -392,7 +392,7 @@ class Terminal {
putCursor2End(self._view.input) putCursor2End(self._view.input)
} else { // <enter> } else { // <enter>
event.preventDefault() event.preventDefault()
self.execute(self._view.input.innerText) self.commands.script(self._view.input.innerText)
self._view.input.innerHTML = '' self._view.input.innerHTML = ''
} }
} }
...@@ -497,7 +497,7 @@ class Terminal { ...@@ -497,7 +497,7 @@ class Terminal {
Object.keys(self.commands).forEach(function makeScopedCommand (cmd) { Object.keys(self.commands).forEach(function makeScopedCommand (cmd) {
var command = self._commands[cmd] var command = self._commands[cmd]
scopedCommands[cmd] = function _command () { scopedCommands[cmd] = function _command () {
var args = arguments var args = [...arguments]
command(args, scopedCommands, el => append(cmd, args, el)) command(args, scopedCommands, el => append(cmd, args, el))
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment