Skip to content

Commit

Permalink
magit-section-cycle-diffs: Deal with mapcan using nconc
Browse files Browse the repository at this point in the history
Closes #5319.
  • Loading branch information
tarsius committed Feb 19, 2025
1 parent 2b3f2cb commit 2b2d434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/magit-diff.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2b2d434

Please sign in to comment.