diff options
author | Visuwesh <visuweshm@gmail.com> | 2023-06-19 22:20:17 +0530 |
---|---|---|
committer | Vasilij Schneidermann <mail@vasilij.de> | 2023-07-15 16:34:58 +0200 |
commit | cc31ce0356226c3a2128119b08de6107e38fdd17 (patch) | |
tree | 3714c5f924545e98387e571f0b7912d10f882d89 | |
parent | 58c35e677e11f5c04a702b42ac753c80c8955089 (diff) |
* nov.el (nov-imenu-goto-function): Make sure file link is relative to TOC file.
-rw-r--r-- | nov.el | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -968,7 +968,9 @@ See also `nov-bookmark-make-record'." (defun nov-imenu-goto-function (_name filename target) "Visit imenu item using FILENAME and TARGET." - (nov-visit-relative-file filename target)) + ;; Make sure file is visited relative to toc file. + (let ((nov-documents-index 0)) + (nov-visit-relative-file filename target))) (defun nov-imenu-create-index () "Generate Imenu index." |