aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-08-28 08:51:28 +1000
committerYuchen Pei <id@ypei.org>2025-08-28 08:51:28 +1000
commit3fcd9edd05062a9c43b60d5361de410c40010908 (patch)
treec439b50a3b71113b26386c540d4859a3b8c113c7
parent7f5c215a3d6b75fc1cbbc62e46ee014cbe2f3f12 (diff)
Fix nov-documents-index in imenuHEADmaster
There's no need to shadow it
-rw-r--r--nov.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/nov.el b/nov.el
index fbaa034..9ef0577 100644
--- a/nov.el
+++ b/nov.el
@@ -1054,8 +1054,7 @@ See also `nov-bookmark-make-record'."
(defun nov-imenu-goto-function (_name filename target)
"Visit imenu item using FILENAME and TARGET."
;; Make sure file is visited relative to toc file.
- (let ((nov-documents-index 0))
- (nov-visit-relative-file filename target)))
+ (nov-visit-relative-file filename target))
(defun nov-imenu-create-index ()
"Generate Imenu index."