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

    Prevent auto-save in PA find-file
    
    With new variable tramp-allow-unsafe-temporary-files nil (Emacs-28+),
    tramp asks with a yes-or-no-p which result in a corrupted helm-window.
---
 helm-files.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helm-files.el b/helm-files.el
index 132fadf0fc..c559333f2e 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -3881,7 +3881,8 @@ in `helm-find-files-persistent-action-if'."
   (let* ((buf      (get-file-buffer candidate))
          (buf-name (buffer-name buf))
          (win (get-buffer-window buf))
-         (helm--reading-passwd-or-string t))
+         (helm--reading-passwd-or-string t)
+         auto-save-default)
     (cond ((and buf win (eql buf (get-buffer helm-current-buffer)))
            (user-error
             "Can't kill `helm-current-buffer' without quitting session"))

Reply via email to