Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Don't narrow subtree before first heading.
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfochrist committed Nov 20, 2016
1 parent e5fd369 commit b6618d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions interleave.el
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,9 @@ function does nothing.
When FORCE is non-nil `interleave-disable-narrowing' is
ignored."
(when (or (not interleave-disable-narrowing)
force)
(when (and (not (org-before-first-heading-p))
(or (not interleave-disable-narrowing)
force))
(org-narrow-to-subtree)))

(defun interleave--go-to-page-note (page)
Expand Down

0 comments on commit b6618d7

Please sign in to comment.