branch: externals/corfu commit 60baa17ee99e333c17e9963c8c18570094053819 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
corfu--guard: Simplify --- corfu.el | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/corfu.el b/corfu.el index 58a01e0a2f..3b10675878 100644 --- a/corfu.el +++ b/corfu.el @@ -872,14 +872,10 @@ and the stack trace is shown in the *Messages* buffer." (condition-case nil (progn ,@body nil) ((debug error) t))))) - (cond - (debug-on-error - (let ((debugger #'corfu--debug)) - (funcall body))) - ((funcall body) + (when (or debug-on-error (funcall body)) (let ((debug-on-error t) (debugger #'corfu--debug)) - (funcall body)))))) + (funcall body))))) (defun corfu--post-command () "Refresh Corfu after last command."