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

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

[elpa] externals/ivy-hydra 334d08c 227/395: ivy.el (ivy--update-history)


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 334d08c 227/395: ivy.el (ivy--update-history): Use ivy-text if it's not ""
Date: Thu, 25 Feb 2021 08:32:08 -0500 (EST)

branch: externals/ivy-hydra
commit 334d08c93aa4ef7fa1cfe0c914208faa378c769f
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ivy.el (ivy--update-history): Use ivy-text if it's not ""
    
    Re #2524
    Re #2526
    Re #2533
    Re #2534
---
 ivy.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 9565aed..1ad379b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2279,7 +2279,10 @@ customizations apply to the current completion session."
     (ivy-call)))
 
 (defun ivy--update-history (hist)
-  (let ((item (ivy-state-current ivy-last)))
+  (let ((item
+         (if (string= ivy-text "")
+             (ivy-state-current ivy-last)
+           ivy-text)))
     (cond ((equal item ""))
           ((stringp item)
            (set hist (cons (propertize item 'ivy-index ivy--index)



reply via email to

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