summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-08-12 03:25:28 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-08-12 03:25:28 +0200
commit7740c35a2a0f162b04f78075afa5a8e2448a782c (patch)
treec11e06610849a6f7b2bab05d55aed560fe2ff01a
parent8e87d664d43f458024400d0ec6c26066a4554798 (diff)
downloadiced-7740c35a2a0f162b04f78075afa5a8e2448a782c.tar.gz
iced-7740c35a2a0f162b04f78075afa5a8e2448a782c.tar.bz2
iced-7740c35a2a0f162b04f78075afa5a8e2448a782c.zip
Use `clipped_cursor` directly in `text_editor`
-rw-r--r--widget/src/text_editor.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs
index 85332ba4..745e3ae8 100644
--- a/widget/src/text_editor.rs
+++ b/widget/src/text_editor.rs
@@ -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,