diff options
author | Vasilij Schneidermann <mail@vasilij.de> | 2017-09-09 10:26:23 +0200 |
---|---|---|
committer | Vasilij Schneidermann <mail@vasilij.de> | 2017-09-09 10:26:23 +0200 |
commit | e8e9807f34f19292aed471ba6c5fb5535f18bb3b (patch) | |
tree | 157ec050fdb96e64055d8e300ea8b9f80784369d /nov.el | |
parent | ce712cf6158ae43b9ee3572faac8f2f10d5046ee (diff) |
Use `file-truename` for both compared files
Diffstat (limited to 'nov.el')
-rw-r--r-- | nov.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |