Ensure default for previously open is t

This commit is contained in:
Greg Sexton 2014-04-19 15:02:51 +01:00
parent 2f2069041a
commit 9c5a4acf60

View File

@ -365,9 +365,9 @@ consumed count."
(defun origami-was-previously-open? (tree) (defun origami-was-previously-open? (tree)
(lambda (beg end) (lambda (beg end)
(-> (origami-fold-find-node-with-range tree beg end) (-if-let (node (-last-item (origami-fold-find-node-with-range tree beg end)))
-last-item (origami-fold-open-p node)
origami-fold-open-p))) t)))
(defun origami-previous-data (tree) (defun origami-previous-data (tree)
(lambda (beg end) (lambda (beg end)