Fix SIGSEGV that occurred when deleting the selected window in
authorChris Hanson <org/chris-hanson/cph>
Tue, 9 Jul 1991 22:51:16 +0000 (22:51 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 9 Jul 1991 22:51:16 +0000 (22:51 +0000)
complicated combinations of windows.

v7/src/edwin/comwin.scm

index 073b4f72498823e4678e93aa5cdf967add10c065..d05a98a713642ced89ccb494bd45ac04519b52a1 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/comwin.scm,v 1.141 1991/05/09 15:54:11 markf Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/comwin.scm,v 1.142 1991/07/09 22:51:16 cph Exp $
 ;;;
 ;;;    Copyright (c) 1985, 1989-91 Massachusetts Institute of Technology
 ;;;
        (let ((adjust-size!
              (lambda (window)
                (if (current-window? leaf)
-                   (select-window window))
+                   (select-window
+                    (let loop ((window window))
+                      (if (combination? window)
+                          (loop (combination-child window))
+                          window))))
                (unlink-leaf! leaf)
                (if (combination-vertical? superior)
                    (=> window :set-y-size!