FIX missing execute->commands.script reference update

pull/1/head
serapath 8 years ago
parent add7b06b41
commit 741df25034
  1. 4
      src/app/panels/terminal.js

@ -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 {
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))
} }
}) })

Loading…
Cancel
Save