From 81f5de7abbd82ae870eeb86386a6abc1e380d1dd Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Fri, 29 Mar 2024 10:29:56 +0100 Subject: corfu-expand: Return nil if NEWSTR=STR --- corfu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corfu.el b/corfu.el index e9d607e..caf58c6 100644 --- a/corfu.el +++ b/corfu.el @@ -1311,7 +1311,7 @@ input has been expanded." (goto-char end) (corfu--done str 'finished corfu--candidates) t) - (`(,newstr . ,newpt) + ((and `(,newstr . ,newpt) (guard (not (and (= pt newpt) (equal newstr str))))) (corfu--replace beg end newstr) (goto-char (+ beg newpt)) ;; Exit with status 'finished if input is a valid match -- cgit v1.0