mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-15 08:03:56 +00:00
macos: fix GHOSTTY_QUICK_TERMINAL not set for quick terminal splits (#12896)
This commit is contained in:
@@ -315,6 +315,16 @@ class QuickTerminalController: BaseTerminalController {
|
||||
animateOut()
|
||||
}
|
||||
|
||||
override func newSplit(
|
||||
at oldView: Ghostty.SurfaceView,
|
||||
direction: SplitTree<Ghostty.SurfaceView>.NewDirection,
|
||||
baseConfig config: Ghostty.SurfaceConfiguration? = nil
|
||||
) -> Ghostty.SurfaceView? {
|
||||
var config = config ?? Ghostty.SurfaceConfiguration()
|
||||
config.environmentVariables["GHOSTTY_QUICK_TERMINAL"] = "1"
|
||||
return super.newSplit(at: oldView, direction: direction, baseConfig: config)
|
||||
}
|
||||
|
||||
// MARK: Methods
|
||||
|
||||
func toggle() {
|
||||
|
||||
Reference in New Issue
Block a user