mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 23:13:13 -04:00
Fix text selection of only whitespace (#5123)
* Closes https://github.com/emilk/egui/issues/5078 * Closes https://github.com/emilk/egui/pull/5120
This commit is contained in:
@@ -79,6 +79,8 @@ pub fn paint_text_selection(
|
||||
mesh.indices[glyph_index_start..glyph_index_start + 6]
|
||||
.clone_from_slice(&selection_triangles);
|
||||
|
||||
row.visuals.mesh_bounds = mesh.calc_bounds();
|
||||
|
||||
if let Some(new_vertex_indices) = &mut new_vertex_indices {
|
||||
new_vertex_indices.push(RowVertexIndices {
|
||||
row: ri,
|
||||
|
||||
Reference in New Issue
Block a user