branch: externals/marginalia commit bb0a5241ee472c8f6b5f554207de4124a1ccb71a Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Fix prompt classifier --- marginalia.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marginalia.el b/marginalia.el index 67763b9795..d92a105ce1 100644 --- a/marginalia.el +++ b/marginalia.el @@ -1132,7 +1132,7 @@ This runs through the `marginalia-prompt-categories' alist looking for a regexp that matches the prompt." (when-let (prompt (minibuffer-prompt)) (setq prompt - (replace-regexp-in-string "(.*default.*)\\|\\[.*\\]" "" prompt)) + (replace-regexp-in-string "(.*?default.*?)\\|\\[.*?\\]" "" prompt)) (cl-loop for (regexp . category) in marginalia-prompt-categories when (string-match-p regexp prompt) return category)))