branch: elpa/helm
commit 76023fbe80cc142f3fae7f005021c6a16e2c2d71
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    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