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

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

[elpa] externals/ivy-hydra ee747e6 290/395: ivy.el (ivy--update-history)


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra ee747e6 290/395: ivy.el (ivy--update-history): Use ivy-state-current for file names
Date: Thu, 25 Feb 2021 08:32:22 -0500 (EST)

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

    ivy.el (ivy--update-history): Use ivy-state-current for file names
    
    This will put the full file path on `file-name-history'.
    
    Fixes #2565
---
 ivy.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index cf7141d..8587a79 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2355,7 +2355,8 @@ customizations apply to the current completion session."
          (if (or (string= ivy-text "")
                  (eq
                   (plist-get (ivy-state-extra-props ivy-last) :caller)
-                  'ivy-completing-read))
+                  'ivy-completing-read)
+                 (eq (ivy-state-history ivy-last) 'file-name-history))
              (ivy-state-current ivy-last)
            ivy-text)))
     (cond ((equal item ""))



reply via email to

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