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

    Ensure ffap-fixup-url is called with a non nil argument
    
    Even if it supports a nil argument it is cleaner to not call it with nil.
---
 helm-files.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helm-files.el b/helm-files.el
index 4d5d8e7f8a..1b64ccdba3 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -5343,7 +5343,8 @@ source is `helm-source-find-files'."
              (end (and (use-region-p) (region-end)))
              (str (and beg end (buffer-substring-no-properties beg end)))
              (ffap (or (helm-aand helm-ff-guess-ffap-urls ffap-url-regexp
-                                  (ffap-fixup-url (ffap-url-at-point))
+                                  (ffap-url-at-point)
+                                  (ffap-fixup-url it)
                                   (and (string-match ffap-url-regexp it) it))
                        (ffap-file-at-point))))
         ;; Workaround emacs bugs:

Reply via email to