From 82c6516718b5eea9128bedfabfd6fafbc3f663e2 Mon Sep 17 00:00:00 2001 From: mcrmck Date: Sun, 22 Mar 2026 18:38:12 -0400 Subject: [PATCH] Use tab_id < 0 instead of == -1 for synthetic tab check --- kitty/tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/tabs.py b/kitty/tabs.py index e68034729..5d528ff84 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -1747,7 +1747,7 @@ class TabManager: # {{{ return tab_id_at_x = self.tab_bar.tab_id_at(int(x)) - if tab_id_at_x == -1: + if tab_id_at_x < 0: # synthetic tab (e.g. "+" new-tab button) if button == GLFW_MOUSE_BUTTON_LEFT and action == GLFW_RELEASE: self.new_tab() return