diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 85332ba464..745e3ae8fb 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,