From 4424451c59eb16189054b1787b247e762fe74c4d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 10 Dec 2025 20:24:54 -0800 Subject: [PATCH] macos: remove to "close to the right" --- macos/Sources/Features/Terminal/TerminalController.swift | 6 ++---- .../Features/Terminal/Window Styles/TerminalWindow.swift | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/macos/Sources/Features/Terminal/TerminalController.swift b/macos/Sources/Features/Terminal/TerminalController.swift index 1083fb405..a275c3f39 100644 --- a/macos/Sources/Features/Terminal/TerminalController.swift +++ b/macos/Sources/Features/Terminal/TerminalController.swift @@ -640,9 +640,7 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr let tabsToClose = tabGroup.windows.enumerated().filter { $0.offset > currentIndex } guard !tabsToClose.isEmpty else { return } - if let undoManager { - undoManager.beginUndoGrouping() - } + undoManager?.beginUndoGrouping() defer { undoManager?.endUndoGrouping() } @@ -654,7 +652,7 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr } if let undoManager { - undoManager.setActionName("Close Tabs on the Right") + undoManager.setActionName("Close Tabs to the Right") undoManager.registerUndo( withTarget: self, diff --git a/macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift b/macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift index cbbbf99f7..1f9f10502 100644 --- a/macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift +++ b/macos/Sources/Features/Terminal/Window Styles/TerminalWindow.swift @@ -297,7 +297,7 @@ class TerminalWindow: NSWindow { } guard let terminalController else { return } - let title = NSLocalizedString("Close Tabs on the Right", comment: "Tab context menu option") + let title = NSLocalizedString("Close Tabs to the Right", comment: "Tab context menu option") let item = NSMenuItem(title: title, action: #selector(TerminalController.closeTabsOnTheRight(_:)), keyEquivalent: "") item.identifier = Self.closeTabsOnRightMenuItemIdentifier item.target = terminalController