From: Lars Ingebrigtsen Date: Mon, 7 Mar 2022 04:58:39 +0000 (+0100) Subject: Fix typo in previous browse-url-file-url change X-Git-Tag: emacs-29.0.90~1979 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=532472220268fb9852b65d60503a446c9e5e57ab;p=emacs.git Fix typo in previous browse-url-file-url change * lisp/net/browse-url.el (browse-url-file-url): Fix typo in previous change. --- diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index ccb4e12a9f1..17169fec0f0 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -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.