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

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

[elpa] externals/mct d9952b9908 1/2: Move line selection by completion c


From: ELPA Syncer
Subject: [elpa] externals/mct d9952b9908 1/2: Move line selection by completion cand, not line
Date: Sun, 23 Jan 2022 09:57:41 -0500 (EST)

branch: externals/mct
commit d9952b99081fecc671d0d0a41bdd7250be3dff7a
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Move line selection by completion cand, not line
    
    The old design fails when the first character on the line is not part of
    the completion candidate itself.  This happens when, for example, the
    all-the-icons-completion-mode is enabled.
---
 mct.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mct.el b/mct.el
index 4a13861c61..65b05c780c 100644
--- a/mct.el
+++ b/mct.el
@@ -764,7 +764,7 @@ If ARG is supplied, move that many completion groups at a 
time."
   "Select completion on Nth line."
   (with-current-buffer (window-buffer (mct--get-completion-window))
     (goto-char (point-min))
-    (forward-line (1- n))
+    (next-completion (1- n))
     (mct-choose-completion-exit)))
 
 (defun mct--line-bounds (n)



reply via email to

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