diff options
Diffstat (limited to 'helm-command.el')
-rw-r--r-- | helm-command.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/helm-command.el b/helm-command.el index 8d16fde4..61cd8d86 100644 --- a/helm-command.el +++ b/helm-command.el @@ -285,12 +285,14 @@ You can get help on each command by persistent action." (cl-flet ((save-hist (command) (setq extended-command-history (cons command (delete command extended-command-history))))) - (condition-case nil + (condition-case err (progn (command-execute sym-com 'record) (save-hist command-name)) - (error (when helm-M-x-always-save-history - (save-hist command-name)))))))))) + (error + (when helm-M-x-always-save-history + (save-hist command-name)) + (signal (car err) (cdr err)))))))))) (put 'helm-M-x 'interactive-only 'command-execute) (provide 'helm-command) |