branch: externals/corfu
commit 81f5de7abbd82ae870eeb86386a6abc1e380d1dd
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    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 e9d607e46c..caf58c6b30 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

Reply via email to