branch: master
commit 259cf07fcad6b5584395baa1a13a0021f1a6618c
Author: Joel Rosdahl <[email protected]>
Commit: Oleh Krehel <[email protected]>

    Fix ivy-previous-line-or-history
    
    Fixes #2137
    Fixes #2138
    
    Note also that this reverts the fix in #1137.
---
 ivy.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index ba248f2..85348ef 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1249,7 +1249,7 @@ If the input is empty, select the previous history 
element instead."
   "Move cursor vertically up ARG candidates.
 If the input is empty, select the previous history element instead."
   (interactive "p")
-  (when (and (zerop ivy--index) (string= ivy-text ""))
+  (when (string= ivy-text "")
     (ivy-previous-history-element 1))
   (ivy-previous-line arg))
 

Reply via email to