branch: master
commit e8168847ee08672dd84de7a7c777ab7ca8850688
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    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