emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/helm b3d410ff68 1/3: Ensure ffap-fixup-url is called with


From: ELPA Syncer
Subject: [nongnu] elpa/helm b3d410ff68 1/3: Ensure ffap-fixup-url is called with a non nil argument
Date: Tue, 23 Aug 2022 13:58:53 -0400 (EDT)

branch: elpa/helm
commit b3d410ff68abd5e551b8999cda5cacc325ad047a
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@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

[Prev in Thread] Current Thread [Next in Thread]