Skip to content

Commit

Permalink
Fix so that post-command-hook is called even when a command causes an…
Browse files Browse the repository at this point in the history
… editor-condition.
  • Loading branch information
cxxxr committed Jan 18, 2025
1 parent f1ec615 commit c593ec9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/command.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
(flet ((post-command ()
(buffer-undo-boundary)
(run-hooks *post-command-hook*)))
(prog1 (handler-bind ((editor-error (lambda (e)
(declare (ignore e))
(post-command))))
(prog1 (handler-bind ((editor-condition (lambda (e)
(declare (ignore e))
(post-command))))
(execute (get-active-modes-class-instance (current-buffer))
*this-command*
universal-argument))
Expand Down

0 comments on commit c593ec9

Please sign in to comment.