From 7740c35a2a0f162b04f78075afa5a8e2448a782c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 12 Aug 2024 03:25:28 +0200 Subject: [PATCH] Use `clipped_cursor` directly in `text_editor` --- widget/src/text_editor.rs | 7 +------ 1 file changed, 1 insertion(+), 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,