mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Fix stupid typo that broke goto_session -1
This commit is contained in:
parent
14cbf5cb73
commit
b401827881
1 changed files with 1 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ def goto_session(boss: BossType, cmdline: Sequence[str]) -> None:
|
|||
idx = 0
|
||||
if idx < 0:
|
||||
if boss.active_session:
|
||||
nidx = max(0, len(goto_session_history) - 1 - idx)
|
||||
nidx = max(0, len(goto_session_history) - 1 + idx)
|
||||
if nidx < len(goto_session_history):
|
||||
switch_to_session(boss, goto_session_history[nidx])
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue