Skip to content

Commit

Permalink
Fix the candidate index for `ivy-resume'
Browse files Browse the repository at this point in the history
* ivy.el (ivy--preselect-index): The the regex, not the plain text.
  • Loading branch information
abo-abo committed May 2, 2015
1 parent 109fb7d commit 2e046d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ivy.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2e046d1

Please sign in to comment.