history even bad commands (easing fixups)
This commit is contained in:
parent
cb2d79a1e3
commit
3c17b6e670
1 changed files with 1 additions and 1 deletions
|
|
@ -45,9 +45,9 @@ class ExState
|
||||||
processOpStack: ->
|
processOpStack: ->
|
||||||
[command, input] = @opStack
|
[command, input] = @opStack
|
||||||
if input.characters.length > 0
|
if input.characters.length > 0
|
||||||
|
@history.unshift command
|
||||||
try
|
try
|
||||||
command.execute(input)
|
command.execute(input)
|
||||||
@history.unshift command
|
|
||||||
catch e
|
catch e
|
||||||
if (e instanceof CommandError)
|
if (e instanceof CommandError)
|
||||||
atom.notifications.addError("Command error: #{e.message}")
|
atom.notifications.addError("Command error: #{e.message}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue