mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: comment on clearing tab
This commit is contained in:
@ -129,15 +129,16 @@ class TerminalController: NSWindowController, NSWindowDelegate,
|
|||||||
// We only listen for frame changes if we have more than 1 window,
|
// We only listen for frame changes if we have more than 1 window,
|
||||||
// otherwise the accessory view doesn't matter.
|
// otherwise the accessory view doesn't matter.
|
||||||
tabListenForFrame = windows.count > 1
|
tabListenForFrame = windows.count > 1
|
||||||
|
|
||||||
for (tab, window) in zip(1..., windows) {
|
for (tab, window) in zip(1..., windows) {
|
||||||
|
// We need to clear any windows beyond this because they have had
|
||||||
|
// a keyEquivalent set previously.
|
||||||
guard tab <= 9 else {
|
guard tab <= 9 else {
|
||||||
window.keyEquivalent = ""
|
window.keyEquivalent = ""
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
let action = "goto_tab:\(tab)"
|
let action = "goto_tab:\(tab)"
|
||||||
|
|
||||||
if let equiv = ghostty.config.keyEquivalent(for: action) {
|
if let equiv = ghostty.config.keyEquivalent(for: action) {
|
||||||
window.keyEquivalent = "\(equiv)"
|
window.keyEquivalent = "\(equiv)"
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user