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)
(lambda (beg end)
(-> (origami-fold-find-node-with-range tree beg end)
-last-item
origami-fold-open-p)))
(-if-let (node (-last-item (origami-fold-find-node-with-range tree beg end)))
(origami-fold-open-p node)
t)))
(defun origami-previous-data (tree)
(lambda (beg end)