macos: initial window shouldn't support undo

pull/7535/head
Mitchell Hashimoto 2025-06-06 15:56:17 -07:00
parent 797c10af37
commit 636b1fff8a
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 2 additions and 0 deletions

View File

@ -260,7 +260,9 @@ class AppDelegate: NSObject,
// - if we're opening a URL since `application(_:openFile:)` is called before this.
// - if we're restoring from persisted state
if TerminalController.all.isEmpty && derivedConfig.initialWindow {
undoManager.disableUndoRegistration()
_ = TerminalController.newWindow(ghostty)
undoManager.enableUndoRegistration()
}
}
}