macos: remove to "close to the right"
parent
cca10f3ca8
commit
4424451c59
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue