From c0315e72f16601c140bdcf0a5c9d70058187fab2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 8 Mar 2023 15:08:42 -0800 Subject: [PATCH] macos: nil bottomright when we close it --- macos/Sources/Ghostty/Ghostty.SplitView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/macos/Sources/Ghostty/Ghostty.SplitView.swift b/macos/Sources/Ghostty/Ghostty.SplitView.swift index d33aebd14..e2af77be3 100644 --- a/macos/Sources/Ghostty/Ghostty.SplitView.swift +++ b/macos/Sources/Ghostty/Ghostty.SplitView.swift @@ -81,6 +81,7 @@ extension Ghostty { assert(state.direction != .none) assert(state.bottomRight != nil) state.topLeft = state.bottomRight! + state.bottomRight = nil state.direction = .none // See fixFocus comment, we have to run this whenever split changes.