branch: elpa/helm
commit d80b6a2122daaa6854cf04bb51bdd922488b7c6e
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Fix preselection of helm-quit-and-find-file with *icon-mode enabled
---
helm-utils.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/helm-utils.el b/helm-utils.el
index 0bd6ed24ba..a73180c2cc 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -588,11 +588,11 @@ from its directory."
helm-actions-inherit-frame-settings) ; use this-command
(if (file-exists-p f)
(helm-find-files-1 (file-name-directory f)
- (concat
- "^"
- (regexp-quote
- (if helm-ff-transformer-show-only-basename
- (helm-basename f) f))))
+ (format
+ helm-ff-last-expanded-candidate-regexp
+ (regexp-quote
+ (if helm-ff-transformer-show-only-basename
+ (helm-basename f) f))))
(helm-find-files-1 f))))
(helm--quit-and-find-file-default-file src)))))
(put 'helm-quit-and-find-file 'helm-only t)