macos: initial window shouldn't support undo

This commit is contained in:
Mitchell Hashimoto
2025-06-06 15:56:17 -07:00
parent 797c10af37
commit 636b1fff8a

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()
}
}
}