From e8e9807f34f19292aed471ba6c5fb5535f18bb3b Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Sat, 9 Sep 2017 10:26:23 +0200 Subject: Use `file-truename` for both compared files --- nov.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nov.el b/nov.el index 2c05948..dd3be9d 100644 --- a/nov.el +++ b/nov.el @@ -509,8 +509,8 @@ the HTML is rendered with `shr-render-region'." (let* ((current-path (cdr (aref nov-documents nov-documents-index))) (directory (file-name-directory current-path)) (path (file-truename (nov-make-path directory filename))) - (index (nov-find-document (lambda (doc) - (string-suffix-p path (cdr doc)))))) + (index (nov-find-document + (lambda (doc) (equal path (file-truename (cdr doc))))))) (when (not index) (error "Couldn't locate document")) (setq nov-documents-index index) -- cgit v1.2.3