branch: elpa/magit commit 2b2d4343702d177c2af4659585ba527e9f2ec399 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-section-cycle-diffs: Deal with mapcan using nconc Closes #5319. --- lisp/magit-diff.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el index 4344764d40..646b5f0048 100644 --- a/lisp/magit-diff.el +++ b/lisp/magit-diff.el @@ -1999,7 +1999,7 @@ commit or stash at point, then prompt for a commit." (dolist (s sections) (magit-section-show s) (magit-section-hide-children s)) - (let ((children (mapcan (##oref % children) sections))) + (let ((children (mapcan (##copy-sequence (oref % children)) sections))) (cond ((and (seq-some (##oref % hidden) children) (seq-some (##oref % children) children)) (mapc #'magit-section-show-headings sections))