Skip to content

Commit 1ce5d42

Browse files
authored
Revert "macOS: fix undo new tab will cause a crash (ghostty-org#9512)" (ghostty-org#13467)
We don't need this anymore after ghostty-org#13364
2 parents edcb6fb + 35790a7 commit 1ce5d42

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)