Refactor, but not fix, origami-next-fold
This commit is contained in:
parent
af44495352
commit
3de4a8513b
@ -449,8 +449,7 @@ a fold, move to the end of the fold that point is in."
|
|||||||
(-> tree
|
(-> tree
|
||||||
(origami-fold-postorder-reduce (lambda (state n)
|
(origami-fold-postorder-reduce (lambda (state n)
|
||||||
(cons (origami-fold-end n) state)) nil)
|
(cons (origami-fold-end n) state)) nil)
|
||||||
(->> (-reduce (lambda (state pos)
|
(->> (-last (lambda (pos) (> pos point))))
|
||||||
(if (<= pos point) state pos))))
|
|
||||||
goto-char)))
|
goto-char)))
|
||||||
|
|
||||||
(defun origami-reset (buffer)
|
(defun origami-reset (buffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user