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

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

[elpa] master 00b009e 101/272: ivy.el (ivy-next-line-or-history): Update


From: Oleh Krehel
Subject: [elpa] master 00b009e 101/272: ivy.el (ivy-next-line-or-history): Update
Date: Mon, 25 Apr 2016 10:13:19 +0000

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

    ivy.el (ivy-next-line-or-history): Update
    
    Don't call `ivy-next-line' when `ivy-previous-history-element' is
    called.
---
 ivy.el |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ivy.el b/ivy.el
index e216554..ebd1c96 100644
--- a/ivy.el
+++ b/ivy.el
@@ -709,9 +709,9 @@ If the text hasn't changed as a result, forward to 
`ivy-alt-done'."
   "Move cursor vertically down ARG candidates.
 If the input is empty, select the previous history element instead."
   (interactive "p")
-  (when (string= ivy-text "")
-    (ivy-previous-history-element 1))
-  (ivy-next-line arg))
+  (if (string= ivy-text "")
+      (ivy-previous-history-element 1)
+    (ivy-next-line arg)))
 
 (defun ivy-previous-line (&optional arg)
   "Move cursor vertically up ARG candidates."



reply via email to

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