mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Fix location=neighbor causing a hang on a new tab
This commit is contained in:
parent
79c80b4043
commit
37bbfb11d3
1 changed files with 2 additions and 2 deletions
|
|
@ -279,8 +279,8 @@ class Layout: # {{{
|
|||
all_windows[i] = window
|
||||
active_window_idx = i
|
||||
elif location is not None:
|
||||
if location == 'neighbor' and current_active_window_idx is not None:
|
||||
active_window_idx = current_active_window_idx + 1
|
||||
if location == 'neighbor' and current_active_window_idx is not None and len(all_windows) > 1:
|
||||
active_window_idx = min(current_active_window_idx + 1, len(all_windows))
|
||||
elif location == 'first':
|
||||
active_window_idx = 0
|
||||
if active_window_idx is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue