From 3c17b6e670554230c4f54f5f2f55c45df08a8d0d Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Sun, 24 May 2015 15:56:11 +0200 Subject: [PATCH] history even bad commands (easing fixups) --- lib/ex-state.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ex-state.coffee b/lib/ex-state.coffee index e52ea1c..b676535 100644 --- a/lib/ex-state.coffee +++ b/lib/ex-state.coffee @@ -45,9 +45,9 @@ class ExState processOpStack: -> [command, input] = @opStack if input.characters.length > 0 + @history.unshift command try command.execute(input) - @history.unshift command catch e if (e instanceof CommandError) atom.notifications.addError("Command error: #{e.message}")