Skip to content

Commit 35790a7

Browse files
committed
Revert "macOS: fix undo new tab will cause a crash (ghostty-org#9512)"
This reverts commit fbabafe, reversing changes made to 7f0468f.
1 parent 66fed65 commit 35790a7

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

macos/Sources/Features/Terminal/TerminalController.swift

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -503,14 +503,9 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
503503
withTarget: controller,
504504
expiresAfter: controller.undoExpiration
505505
) { target in
506-
// Close the tab when undoing. We do this in a DispatchQueue because
507-
// for some people on macOS Tahoe this caused a crash and the queue
508-
// fixes it.
509-
// https://github.com/ghostty-org/ghostty/pull/9512
510-
DispatchQueue.main.async {
511-
undoManager.disableUndoRegistration {
512-
target.closeTab(nil)
513-
}
506+
// Close the tab when undoing
507+
undoManager.disableUndoRegistration {
508+
target.closeTab(nil)
514509
}
515510

516511
// Register redo action

0 commit comments

Comments
 (0)