branch: master commit 045fb6094234bfbeb1e6d02b67d549ae9b06f00d Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy-previous-line): Change to `cl-decf' Re #15 --- ivy.el | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/ivy.el b/ivy.el index 73965c8..ce4a610 100644 --- a/ivy.el +++ b/ivy.el @@ -95,7 +95,7 @@ "Select the previous completion candidate." (interactive) (unless (zerop ivy--index) - (decf ivy--index))) + (cl-decf ivy--index))) (defun ivy-backward-delete-char () "Forward to `backward-delete-char'. @@ -261,7 +261,6 @@ CANDIDATES is a list of strings." :test #'equal))))) (setq ivy--index (or idx 0))) (setq ivy--old-cands cands) - ;; should do a re-anchor here (when (>= ivy--index ivy--length) (setq ivy--index (1- ivy--length))) (if (null cands)