diff options
author | 2024-08-12 03:25:28 +0200 | |
---|---|---|
committer | 2024-08-12 03:25:28 +0200 | |
commit | 7740c35a2a0f162b04f78075afa5a8e2448a782c (patch) | |
tree | c11e06610849a6f7b2bab05d55aed560fe2ff01a | |
parent | 8e87d664d43f458024400d0ec6c26066a4554798 (diff) | |
download | iced-7740c35a2a0f162b04f78075afa5a8e2448a782c.tar.gz iced-7740c35a2a0f162b04f78075afa5a8e2448a782c.tar.bz2 iced-7740c35a2a0f162b04f78075afa5a8e2448a782c.zip |
Use `clipped_cursor` directly in `text_editor`
-rw-r--r-- | widget/src/text_editor.rs | 7 |
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, |