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

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

[elpa] master 045fb60 28/67: ivy.el (ivy-previous-line): Change to `cl-d


From: Oleh Krehel
Subject: [elpa] master 045fb60 28/67: ivy.el (ivy-previous-line): Change to `cl-decf'
Date: Sun, 22 Mar 2015 17:33:58 +0000

branch: master
commit 045fb6094234bfbeb1e6d02b67d549ae9b06f00d
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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)



reply via email to

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