emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c7e6b62 1/2: Fix a bug in completion--flex-adjust-metadata


From: João Távora
Subject: master c7e6b62 1/2: Fix a bug in completion--flex-adjust-metadata
Date: Mon, 23 Dec 2019 06:09:37 -0500 (EST)

branch: master
commit c7e6b62d9e2f56bad176d391238e5d0ec7c28ade
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Fix a bug in completion--flex-adjust-metadata
    
    If minibuffer-default coincided with the first of completions, the
    empty list would be returned.
    
    * lisp/minibuffer.el (completion--flex-adjust-metadata): Make sure
    to never return empty list.
---
 lisp/minibuffer.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 2dba268..6011a49 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -3612,7 +3612,8 @@ that is non-nil."
                for comp = (cadr l)
                when (string-prefix-p minibuffer-default comp)
                do (setf (cdr l) (cddr l))
-               and return (cons comp pre-sorted)))
+               and return (cons comp pre-sorted)
+               finally return pre-sorted))
              (t
               pre-sorted))))))
     `(metadata



reply via email to

[Prev in Thread] Current Thread [Next in Thread]