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

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

[elpa] master e816884 03/19: Default ARG to 1 for arrows


From: Oleh Krehel
Subject: [elpa] master e816884 03/19: Default ARG to 1 for arrows
Date: Thu, 16 Apr 2015 12:18:08 +0000

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

    Default ARG to 1 for arrows
    
    * ivy.el (ivy-next-line): Update.
    (ivy-previous-line): Update.
---
 ivy.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ivy.el b/ivy.el
index 25b45dd..3e22968 100644
--- a/ivy.el
+++ b/ivy.el
@@ -108,6 +108,7 @@ of `history-length', which see.")
 (defun ivy-next-line (&optional arg)
   "Move cursor vertically down ARG candidates."
   (interactive "p")
+  (setq arg (or arg 1))
   (cl-incf ivy--index arg)
   (when (>= ivy--index (1- ivy--length))
     (if ivy-wrap
@@ -125,6 +126,7 @@ If the input is empty, select the previous history element 
instead."
 (defun ivy-previous-line (&optional arg)
   "Move cursor vertically up ARG candidates."
   (interactive "p")
+  (setq arg (or arg 1))
   (cl-decf ivy--index arg)
   (when (< ivy--index 0)
     (if ivy-wrap



reply via email to

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