mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Use 1-indexed values when dealing with tabs
This commit is contained in:
@ -130,13 +130,13 @@ class TerminalController: NSWindowController, NSWindowDelegate,
|
||||
// otherwise the accessory view doesn't matter.
|
||||
tabListenForFrame = windows.count > 1
|
||||
|
||||
for (index, window) in windows.enumerated() {
|
||||
guard index < 9 else {
|
||||
for (tab, window) in zip(1..., windows) {
|
||||
guard tab <= 9 else {
|
||||
window.keyEquivalent = ""
|
||||
continue
|
||||
}
|
||||
|
||||
let action = "goto_tab:\(index + 1)"
|
||||
let action = "goto_tab:\(tab)"
|
||||
|
||||
if let equiv = ghostty.config.keyEquivalent(for: action) {
|
||||
window.keyEquivalent = "\(equiv)"
|
||||
|
Reference in New Issue
Block a user