org-protocol: Fix for silently failing open-source subprotocol

* (org-protocol-open-source): Tests URL against base-url and not the
  filename.

TINYCHANGE
This commit is contained in:
Mario Martelli 2017-06-24 16:01:20 +02:00 committed by Nicolas Goaziou
parent 5748615c48
commit cbcd714b23
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ The location for a browser's bookmark should look like this:
;; Try to match a rewritten URL and map it to
;; a real file. Compare redirects without
;; suffix.
(when (string-match-p (car rewrite) f2)
(when (string-match-p (car rewrite) f1)
(throw 'result (concat wdir (cdr rewrite))))))))
;; -- end of redirects --