macos: remove to "close to the right"

pull/9783/head
Mitchell Hashimoto 2025-12-10 20:24:54 -08:00
parent cca10f3ca8
commit 4424451c59
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
2 changed files with 3 additions and 5 deletions

View File

@ -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,

View File

@ -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