branch: elpa/helm
commit f1967c73cc06f7e298fb2366c320f94be6eaaf80
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Ensure helm-marked-candidates is called in helm window
    
    This is always the case as long as the button is not released, but be
    sure of it, make the code more readable as well.
---
 helm-files.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helm-files.el b/helm-files.el
index d973e20ff5..7bd7160629 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -5634,7 +5634,7 @@ It is the drag-an-drop function of dired adapted for 
helm-find-files."
               ;; We can get an error if there's by some chance no file
               ;; name at point.
               (condition-case error
-                  (let ((files (helm-marked-candidates)))
+                  (let ((files (with-helm-window (helm-marked-candidates))))
                     (dnd-begin-drag-files files nil action t))
                 (error (when (eq (event-basic-type new-event) 'mouse-1)
                          (push new-event unread-command-events))

Reply via email to