aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nov.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/nov.el b/nov.el
index 739a930..f0d49e1 100644
--- a/nov.el
+++ b/nov.el
@@ -970,7 +970,7 @@ Saving is only done if `nov-save-place-file' is set."
"Open FILE in nov-mode and go to the specified INDEX and POSITION.
If FILE is nil, the current buffer is used."
(when file
- (find-file file))
+ (pop-to-buffer (find-file-noselect file)))
(unless (eq major-mode 'nov-mode)
(nov-mode))
(when (not (nov--index-valid-p nov-documents index))