branch: elpa/helm
commit b39f8ad297e3bacd0ac0a8b7520955abe2874c55
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Remove text props in candidates when saving to file-name-history
This never happened here because psession is taking care of this but
this may happen with primitive modes as savehist-mode.
---
helm-files.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/helm-files.el b/helm-files.el
index 226709739b..666d00dab6 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -6673,7 +6673,8 @@ be existing directories."
;; and we don't want to introduce duplicates.
(add-to-history 'file-name-history
(abbreviate-file-name
- (expand-file-name sel))))))))
+ (expand-file-name
+ (substring-no-properties sel)))))))))
(add-hook 'helm-exit-minibuffer-hook 'helm-files-save-file-name-history)
(defvar helm-source-file-name-history