Skip to content

Commit

Permalink
Reset helm-ff-default-directory.
Browse files Browse the repository at this point in the history
* helm-files.el (helm-find-files-1):
Reset helm-ff-default-directory when exiting.
  • Loading branch information
Thierry Volpiatto committed Sep 1, 2015
1 parent c7ded69 commit 78bf806
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions helm-files.el
Original file line number Diff line number Diff line change
Expand Up @@ -2349,15 +2349,17 @@ Use it for non--interactive calls of `helm-find-files'."
(unless helm-source-find-files
(setq helm-source-find-files (helm-make-source
"Find Files" 'helm-source-ffiles)))
(helm :sources 'helm-source-find-files
:input fname
:case-fold-search helm-file-name-case-fold-search
:preselect preselect
:ff-transformer-show-only-basename
helm-ff-transformer-show-only-basename
:default def
:prompt "Find Files or Url: "
:buffer "*Helm Find Files*")))
(unwind-protect
(helm :sources 'helm-source-find-files
:input fname
:case-fold-search helm-file-name-case-fold-search
:preselect preselect
:ff-transformer-show-only-basename
helm-ff-transformer-show-only-basename
:default def
:prompt "Find Files or Url: "
:buffer "*Helm Find Files*")
(setq helm-ff-default-directory nil))))

(defun helm-find-files-toggle-to-bookmark ()
"Toggle helm-bookmark for `helm-find-files' and `helm-find-files.'"
Expand Down

0 comments on commit 78bf806

Please sign in to comment.