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

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

[nongnu] elpa/helm 76023fbe80 06/11: Expand file name in helm-files-save


From: ELPA Syncer
Subject: [nongnu] elpa/helm 76023fbe80 06/11: Expand file name in helm-files-save-file-name-history
Date: Thu, 6 Jun 2024 10:00:14 -0400 (EDT)

branch: elpa/helm
commit 76023fbe80cc142f3fae7f005021c6a16e2c2d71
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Expand file name in helm-files-save-file-name-history
    
    This is needed for sources like fd that are providing relative names
    as candidates.
---
 helm-files.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helm-files.el b/helm-files.el
index 54f0378d84..d7a3aef1a1 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -6635,7 +6635,8 @@ be directories."
                  ;; other parts of Emacs seems to,
                  ;; and we don't want to introduce duplicates.
                  (add-to-history 'file-name-history
-                                 (abbreviate-file-name sel)))))))
+                                 (abbreviate-file-name
+                                  (expand-file-name sel))))))))
 (add-hook 'helm-exit-minibuffer-hook 'helm-files-save-file-name-history)
 
 (defvar helm-source-file-name-history



reply via email to

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