Skip to content

Commit

Permalink
add padding_y for caret
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jan 6, 2025
1 parent 1491a85 commit d810426
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sugarloaf/src/components/rich_text/compositor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,12 @@ impl Compositor {
}
Some(SugarCursor::Caret(cursor_color)) => {
self.batches.add_rect(
&Rect::new(rect.x, style.topline, 3.0, style.line_height_without_mod),
&Rect::new(
rect.x,
style.topline + style.padding_y,
3.0,
style.line_height_without_mod,
),
depth,
&cursor_color,
);
Expand Down

0 comments on commit d810426

Please sign in to comment.