branch: externals/vertico commit b0c0a2eebeacb2ff92c788daab430fcaabdf1d71 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
vertico--guard: Simplify --- vertico.el | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vertico.el b/vertico.el index ff9d282cd9..e1d868da4d 100644 --- a/vertico.el +++ b/vertico.el @@ -485,14 +485,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 #'vertico--debug)) - (funcall body))) - ((funcall body) + (when (or debug-on-error (funcall body)) (let ((debug-on-error t) (debugger #'vertico--debug)) - (funcall body)))))) + (funcall body))))) (defun vertico--exhibit () "Exhibit completion UI."