From c593ec95392bc49b534320f7d4b58e98e67704f0 Mon Sep 17 00:00:00 2001 From: cxxxr Date: Sat, 18 Jan 2025 19:39:57 +0900 Subject: [PATCH] Fix so that post-command-hook is called even when a command causes an editor-condition. --- src/command.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command.lisp b/src/command.lisp index de8b08f31..ac8867c18 100644 --- a/src/command.lisp +++ b/src/command.lisp @@ -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))