branch: elpa/helm commit 91884032484d2321ed419abf4f2d4cffce895d24 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Ensure minibuffer focus is restored in any cases. --- helm-files.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-files.el b/helm-files.el index d8cca64ade..be646868b4 100644 --- a/helm-files.el +++ b/helm-files.el @@ -5667,9 +5667,9 @@ When no suitable place to drop is found ask to drop to ((car windows) (with-selected-window it default-directory))))) (if (memq helm-ff-drag-mouse-1-default-action '(copy rsync)) - (progn - (helm-find-files-do-action - helm-ff-drag-mouse-1-default-action target) + (unwind-protect + (helm-find-files-do-action + helm-ff-drag-mouse-1-default-action target) ;; Retrieve focus after dropping (with-selected-frame helm-initial-frame (select-window (minibuffer-window))))