mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-05 12:57:50 +00:00
macos: initial window shouldn't support undo
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user