Skip to content

Commit

Permalink
shit
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRTTV committed Jun 22, 2024
1 parent de98a95 commit e29a37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workbench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ impl Workbench {
let target_depth = (self.mouse_x + horizontal_scroll - left_margin - 16) / 16;
let (depth, (_, _, _, _)) = Traverse::new(y, &mut tab.value).enumerate().last();
if tab.last_double_click_expand.0 == (target_depth, y) && now - tab.last_double_click_expand.1 <= LINE_DOUBLE_CLICK_INTERVAL {
self.toggle(shift, true);
tab.last_double_click_expand = (Vec2u::new(depth, y), now);
self.toggle(shift, true);
return true;
} else {
tab.last_double_click_expand = (Vec2u::new(depth, y), now);
Expand Down

0 comments on commit e29a37c

Please sign in to comment.