summaryrefslogtreecommitdiff
path: root/macos/Sources/Features/Terminal/BaseTerminalController.swift
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-06-04 12:17:50 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-06-05 07:05:13 -0700
commit5299f10e13ec73e47d0e67843e9e56bf560bdbd5 (patch)
tree37dbc88529f4c7ea6e052515a80b85ad5410d63e /macos/Sources/Features/Terminal/BaseTerminalController.swift
parent19a9156ae1d562250b42023d1914f2482805cec4 (diff)
macos: unzoom on new split and focus change
Diffstat (limited to 'macos/Sources/Features/Terminal/BaseTerminalController.swift')
-rw-r--r--macos/Sources/Features/Terminal/BaseTerminalController.swift5
1 files changed, 5 insertions, 0 deletions
diff --git a/macos/Sources/Features/Terminal/BaseTerminalController.swift b/macos/Sources/Features/Terminal/BaseTerminalController.swift
index be4b59e7a..ba57fbf70 100644
--- a/macos/Sources/Features/Terminal/BaseTerminalController.swift
+++ b/macos/Sources/Features/Terminal/BaseTerminalController.swift
@@ -451,6 +451,11 @@ class BaseTerminalController: NSWindowController,
return
}
+ // Remove the zoomed state for this surface tree.
+ if surfaceTree.zoomed != nil {
+ surfaceTree = .init(root: surfaceTree.root, zoomed: nil)
+ }
+
// Move focus to the next surface
Ghostty.moveFocus(to: nextSurface, from: target)
}