summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--nroam.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/nroam.el b/nroam.el
index 87855d7..7c3f379 100644
--- a/nroam.el
+++ b/nroam.el
@@ -192,10 +192,8 @@ Make the region inserted by BODY read-only, and marked with
(with-nroam-markers
(seq-do #'funcall nroam-sections))
(when (nroam--sections-inserted-p)
- (goto-char (+ p 1)) ; maybe to implicit. But loc. of new
- ; backlinks section
(save-restriction
- (org-narrow-to-subtree)
+ (narrow-to-region p (point-max))
(org-set-startup-visibility)))))))
(defun nroam--get-backlinks ()