aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nov.el4
1 files 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)