]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typo in previous browse-url-file-url change
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 7 Mar 2022 04:58:39 +0000 (05:58 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 7 Mar 2022 04:58:39 +0000 (05:58 +0100)
* lisp/net/browse-url.el (browse-url-file-url): Fix typo in
previous change.

lisp/net/browse-url.el

index ccb4e12a9f13daca024d69daa23b23f5b5c4906e..17169fec0f08c8b2b2aafe59b0f3e559e2b0fc30 100644 (file)
@@ -724,7 +724,7 @@ Use variable `browse-url-filename-alist' to map filenames to URLs."
            ;; reasons.
            (seq-find (lambda (match)
                        (and (string-match-p (car match) file)
-                            (not (string-match "\\`file:" (cadr match)))))
+                            (not (string-match "\\`file:" (cdr match)))))
                      browse-url-filename-alist))
       (setq file (browse-url-url-encode-chars file "[*\"()',=;?% ]"))
     ;; Encode all other file names properly.