Skip to content

Commit

Permalink
Use clipped_cursor directly in text_editor
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Aug 12, 2024
1 parent 8e87d66 commit 7740c35
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions widget/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,12 +822,7 @@ where
{
renderer.fill_quad(
renderer::Quad {
bounds: Rectangle {
x: clipped_cursor.x,
y: clipped_cursor.y,
width: clipped_cursor.width,
height: clipped_cursor.height,
},
bounds: clipped_cursor,
..renderer::Quad::default()
},
style.value,
Expand Down

0 comments on commit 7740c35

Please sign in to comment.