macos: nil bottomright when we close it

This commit is contained in:
Mitchell Hashimoto
2023-03-08 15:08:42 -08:00
parent 6c857877e8
commit c0315e72f1

View File

@ -81,6 +81,7 @@ extension Ghostty {
assert(state.direction != .none) assert(state.direction != .none)
assert(state.bottomRight != nil) assert(state.bottomRight != nil)
state.topLeft = state.bottomRight! state.topLeft = state.bottomRight!
state.bottomRight = nil
state.direction = .none state.direction = .none
// See fixFocus comment, we have to run this whenever split changes. // See fixFocus comment, we have to run this whenever split changes.