branch: elpa/helm commit 83b603627b099c6eed4a50a0d080293a63fff860 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Use the SOURCE argument in helm--quit-and-find-file-default-file to avoid a helm-get-current-source repetition. --- helm-utils.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-utils.el b/helm-utils.el index 9f1238d971..2c64d303bb 100644 --- a/helm-utils.el +++ b/helm-utils.el @@ -596,7 +596,7 @@ from its directory." (put 'helm-quit-and-find-file 'helm-only t) (defun helm--quit-and-find-file-default-file (source) - (let ((target-fn (helm-get-attr 'find-file-target))) + (let ((target-fn (helm-get-attr 'find-file-target source))) ;; target-fn function may return nil, in this case fallback to default. (helm-aif (and target-fn (funcall target-fn source)) it