mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 18:22:09 +02:00
...
This commit is contained in:
@@ -561,7 +561,8 @@ class TabBar:
|
|||||||
del self.screen
|
del self.screen
|
||||||
|
|
||||||
def tab_at(self, x: int) -> Optional[int]:
|
def tab_at(self, x: int) -> Optional[int]:
|
||||||
x = (x - self.window_geometry.left) // self.cell_width
|
if self.laid_out_once:
|
||||||
for i, (a, b) in enumerate(self.cell_ranges):
|
x = (x - self.window_geometry.left) // self.cell_width
|
||||||
if a <= x <= b:
|
for i, (a, b) in enumerate(self.cell_ranges):
|
||||||
return i
|
if a <= x <= b:
|
||||||
|
return i
|
||||||
|
|||||||
Reference in New Issue
Block a user