Skip to content

Commit

Permalink
Fix selection top right corner radius.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Feb 6, 2025
1 parent a892c07 commit c981224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/editor/src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8148,6 +8148,7 @@ impl HighlightedRange {

let top_curve_width = curve_width(first_line.start_x, first_line.end_x);
let mut builder = gpui::PathBuilder::fill();
builder.move_to(first_top_right - top_curve_width);
builder.curve_to(first_top_right + curve_height, first_top_right);

let mut iter = lines.iter().enumerate().peekable();
Expand Down

0 comments on commit c981224

Please sign in to comment.