mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-27 11:21:32 +00:00
Same thing for window removal
This commit is contained in:
parent
b5e664c9a0
commit
c05e49a78e
1 changed files with 2 additions and 1 deletions
|
|
@ -369,10 +369,11 @@ remove_window_inner(Tab *tab, id_type id) {
|
|||
if (active_window_id) {
|
||||
for (unsigned int w = 0; w < tab->num_windows; w++) {
|
||||
if (tab->windows[w].id == active_window_id) {
|
||||
tab->active_window = w; break;
|
||||
tab->active_window = w; return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tab->active_window >= tab->num_windows) tab->active_window = 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue