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)
|
||||
(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)
|
||||
|
Loading…
Reference in New Issue
Block a user