[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 2ea92da056 2/2: Fix preselection with icons in helm-f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 2ea92da056 2/2: Fix preselection with icons in helm-find-files-do-action |
Date: |
Tue, 5 Apr 2022 02:58:33 -0400 (EDT) |
branch: elpa/helm
commit 2ea92da056362046a20449c3e27409f988a64a4e
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Fix preselection with icons in helm-find-files-do-action
---
helm-files.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/helm-files.el b/helm-files.el
index c863f7145e..8580bb92b5 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -1137,11 +1137,10 @@ ACTION can be `rsync' or any action supported by
`helm-dired-action'."
(helm-read-file-name
prompt
:preselect (when cand
- (concat
- "^"
- (regexp-quote
- (if
helm-ff-transformer-show-only-basename
- (helm-basename cand) cand))))
+ (format
helm-ff-last-expanded-candidate-regexp
+ (regexp-quote
+ (if
helm-ff-transformer-show-only-basename
+ (helm-basename cand) cand))))
:initial-input (helm-dwim-target-directory)
:history (helm-find-files-history nil :comp-read
nil))))))
(dest-dir-p (file-directory-p dest))