fixed repeater top level cloner

This commit is contained in:
ndwarshuis 2019-03-11 18:42:39 -04:00
parent 3c9e79c31f
commit 2324fac7d0
1 changed files with 5 additions and 1 deletions

View File

@ -988,7 +988,11 @@ the top level headline and only looks at the second level of
headlines to clone." headlines to clone."
(interactive "nNumber of clones to produce: ") (interactive "nNumber of clones to produce: ")
;; do nothing if there is nothing to clone ;; do nothing if there is nothing to clone
(unless (eq :uninit (nd/get-iterator-status)) (unless (eq :uninit
(or (and (nd/is-iterator-heading-p)
(nd/get-iterator-status))
(and (nd/is-periodical-heading-p)
(nd/get-periodical-status))))
;; goto last item in the second level ;; goto last item in the second level
(save-excursion (save-excursion
(let ((current-point (point))) (let ((current-point (point)))