fix new-tab hover calculation
refs: https://github.com/wez/wezterm/issues/677
This commit is contained in:
1 parent
903c7a47b6
commit
16701f61b4
1 file changed
+4
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user