Skip to content

Commit

Permalink
Fix next / prev pointer changing in %replace-frame
Browse files Browse the repository at this point in the history
  • Loading branch information
sdilts committed Jan 20, 2025
1 parent 4ce6970 commit f74ae90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lisp/tree/frame.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ of FRAME to those of ROOT."
(if (root-frame-p root)
(setf (%frame-next frame) frame
(%frame-prev frame) frame)
(setf (%frame-next (frame-prev root) frame)
(%frame-prev (frame-next root) frame)))
(psetf (%frame-next (frame-prev root)) frame
(%frame-prev (frame-next root)) frame
(%frame-prev frame) (frame-prev root)
(%frame-next frame) (frame-next root)))
(swap-in-parent root frame)
(setf (frame-parent frame) (frame-parent root))
;; don't bother with an if-statement to see which values to change:
Expand Down

0 comments on commit f74ae90

Please sign in to comment.