Ensure default for previously open is t
This commit is contained in:
parent
2f2069041a
commit
9c5a4acf60
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user