emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/corfu 0270238 2/2: Add note


From: Protesilaos Stavrou
Subject: [elpa] externals/corfu 0270238 2/2: Add note
Date: Mon, 19 Apr 2021 12:48:29 -0400 (EDT)

branch: externals/corfu
commit 027023845d0ab06d57fe6edb68ffc295ce9f1d95
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Add note
---
 corfu.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/corfu.el b/corfu.el
index 5acbb2e..e56d839 100644
--- a/corfu.el
+++ b/corfu.el
@@ -536,6 +536,12 @@ If `line-spacing/=nil' or in text-mode, the background 
color is used instead.")
     ;; For example str can be a valid path, e.g., ~/dir/.
     (when (or (>= corfu--index 0) (equal str "")
               (not (test-completion str table pred)))
+      ;; XXX There is a small bug here, depending on interpretation.
+      ;; When completing "~/emacs/master/li|/calc" where "|" is the
+      ;; cursor, then the candidate only includes the prefix
+      ;; "~/emacs/master/lisp/", but not the suffix "/calc". Default
+      ;; completion has the same problem when selecting in the
+      ;; *Completions* buffer.
       (setq str (concat (substring str 0 corfu--base)
                         (substring-no-properties
                          (nth (max 0 corfu--index) corfu--candidates))))



reply via email to

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