branch: master commit 0a9780baf74a545419c3d4d6c4e82d0691f24d5c Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy--recompute-index): Update cl-position logic Re #207 --- ivy.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ivy.el b/ivy.el index 553f1a5..f48459f 100644 --- a/ivy.el +++ b/ivy.el @@ -1964,10 +1964,10 @@ Prefix matches to NAME are put ahead of the list." (unless (eq this-command 'ivy-resume) (setq ivy--index (or - (cl-position (if (and (> (length re-str) 0) - (eq ?^ (aref re-str 0))) - (substring re-str 1) - re-str) cands + (cl-position (if (and (> (length name) 0) + (eq ?^ (aref name 0))) + (substring name 1) + name) cands :test #'equal) (and ivy--directory (cl-position