diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2013-06-16 08:53:52 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2013-06-16 08:53:52 +0200 |
commit | b1cbebbfffabaec7e0e5e3cc2c426b1545e194c2 (patch) | |
tree | 9d1cda7292ee4bd93d8ff1084857607cd33a2399 /helm-files.el | |
parent | 04fac2e10f76e6e0b3e4fd9aeaf127b9ca06f0e9 (diff) |
* helm-files.el (helm-find-files-initial-input): Don't try to get default input in image-mode.
Diffstat (limited to 'helm-files.el')
-rw-r--r-- | helm-files.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/helm-files.el b/helm-files.el index ee39882a..3979a987 100644 --- a/helm-files.el +++ b/helm-files.el @@ -1925,11 +1925,12 @@ Use it for non--interactive calls of `helm-find-files'." (defun helm-find-files-initial-input (&optional input) "Return INPUT if present, otherwise try to guess it." - (or (and input (or (and (file-remote-p input) input) - (expand-file-name input))) - (helm-find-files-input - (ffap-guesser) - (thing-at-point 'filename)))) + (unless (eq major-mode 'image-mode) + (or (and input (or (and (file-remote-p input) input) + (expand-file-name input))) + (helm-find-files-input + (ffap-guesser) + (thing-at-point 'filename))))) (defun helm-find-files-input (file-at-pt thing-at-pt) "Try to guess a default input for `helm-find-files'." |