macos: new window on existing terminal inherits properly

This commit is contained in:
Mitchell Hashimoto
2023-10-30 22:57:46 -07:00
parent ecd7a17384
commit 6a024897a6
2 changed files with 6 additions and 1 deletions

View File

@@ -152,6 +152,11 @@ class TerminalController: NSWindowController, NSWindowDelegate, TerminalViewDele
//MARK: - First Responder
@IBAction func newWindow(_ sender: Any?) {
guard let surface = focusedSurface?.surface else { return }
ghostty.newWindow(surface: surface)
}
@IBAction func newTab(_ sender: Any?) {
guard let surface = focusedSurface?.surface else { return }
ghostty.newTab(surface: surface)