fix new-tab hover calculation

refs: https://github.com/wez/wezterm/issues/677
This commit is contained in:
Wez Furlong committed 2021-04-11 16:10:14 -07:00
1 parent 903c7a47b6
commit 16701f61b4
1 file changed
+4 -1
+4 -1
View File
@@ -222,7 +222,10 @@ impl TabBarState {
// New tab button
{
let hover = mouse_x
.map(|mouse_x| mouse_x >= x && mouse_x < x + 3)
.map(|mouse_x| {
mouse_x >= x
&& mouse_x < x + new_tab_hover_left.len() + new_tab_hover_right.len() + 1
})
.unwrap_or(false);
let (cell_attrs, left, right) = if hover {