mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Ensure we dont try to update window title for tabs with no windows
This commit is contained in:
@@ -634,8 +634,10 @@ render_os_window(OSWindow *os_window, double now, unsigned int active_window_id,
|
|||||||
static inline void
|
static inline void
|
||||||
update_os_window_title(OSWindow *os_window) {
|
update_os_window_title(OSWindow *os_window) {
|
||||||
Tab *tab = os_window->tabs + os_window->active_tab;
|
Tab *tab = os_window->tabs + os_window->active_tab;
|
||||||
Window *w = tab->windows + tab->active_window;
|
if (tab->num_windows) {
|
||||||
update_window_title(w, os_window);
|
Window *w = tab->windows + tab->active_window;
|
||||||
|
update_window_title(w, os_window);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
|
|||||||
Reference in New Issue
Block a user