diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-09-01 07:44:25 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2015-09-01 08:10:35 +0200 |
commit | 78bf80669f83200068ccbea364e318d79396cd99 (patch) | |
tree | 808e95d0eafb550add14d4b9bc8d1a52c582e0c3 /helm-files.el | |
parent | c7ded69bc7ff779ee958dfdcbe372e0f65b93fe4 (diff) |
Reset helm-ff-default-directory.
* helm-files.el (helm-find-files-1):
Reset helm-ff-default-directory when exiting.
Diffstat (limited to 'helm-files.el')
-rw-r--r-- | helm-files.el | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/helm-files.el b/helm-files.el index 617645b4..1b06fdff 100644 --- a/helm-files.el +++ b/helm-files.el @@ -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.'" |