Skip to content

Commit 2e046d1

Browse files
committed
Fix the candidate index for `ivy-resume'
* ivy.el (ivy--preselect-index): The the regex, not the plain text.
1 parent 109fb7d commit 2e046d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ivy.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ Turning on Ivy mode will set `completing-read-function' to
704704
(defun ivy--preselect-index (candidates initial-input preselect)
705705
"Return the index in CANDIDATES filtered by INITIAL-INPUT for PRESELECT."
706706
(when initial-input
707+
(setq initial-input (ivy--regex-plus initial-input))
707708
(setq candidates
708709
(cl-remove-if-not
709710
(lambda (x)

0 commit comments

Comments
 (0)