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

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

[elpa] master 2e046d1 09/12: Fix the candidate index for `ivy-resume'


From: Oleh Krehel
Subject: [elpa] master 2e046d1 09/12: Fix the candidate index for `ivy-resume'
Date: Sun, 03 May 2015 11:04:55 +0000

branch: master
commit 2e046d190b1ce0e3ff71856cc173eb92f1249eb7
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    Fix the candidate index for `ivy-resume'
    
    * ivy.el (ivy--preselect-index): The the regex, not the plain text.
---
 ivy.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ivy.el b/ivy.el
index 667186e..2a7bec6 100644
--- a/ivy.el
+++ b/ivy.el
@@ -704,6 +704,7 @@ Turning on Ivy mode will set `completing-read-function' to
 (defun ivy--preselect-index (candidates initial-input preselect)
   "Return the index in CANDIDATES filtered by INITIAL-INPUT for PRESELECT."
   (when initial-input
+    (setq initial-input (ivy--regex-plus initial-input))
     (setq candidates
           (cl-remove-if-not
            (lambda (x)



reply via email to

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