1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Fix text color when selecting newline character (#7951)

* Closes https://github.com/emilk/egui/issues/7865
This commit is contained in:
Emil Ernerfeldt
2026-03-03 13:27:56 +01:00
committed by GitHub
parent a354c02e76
commit b733679760
5 changed files with 27 additions and 20 deletions

View File

@@ -67,9 +67,7 @@ pub fn paint_text_selection(
let first_vertex_index = row
.glyphs
.get(first_glyph_index)
.map_or(row.visuals.glyph_vertex_range.start, |g| {
g.first_vertex as _
});
.map_or(row.visuals.glyph_vertex_range.end, |g| g.first_vertex as _);
let last_vertex_index = row
.glyphs
.get(last_glyph_index)