Make cursor match text color

This commit is contained in:
Jeremy Soller 2022-10-19 09:32:26 -06:00
parent f03834e28d
commit 165ea1c0da
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE

View file

@ -483,7 +483,7 @@ impl<'a> TextBuffer<'a> {
line_y - font_size, line_y - font_size,
1, 1,
line_height as u32, line_height as u32,
0x20FFFFFF, color,
); );
} else { } else {
let glyph = &line.glyphs[self.cursor.glyph]; let glyph = &line.glyphs[self.cursor.glyph];
@ -492,7 +492,7 @@ impl<'a> TextBuffer<'a> {
line_y - font_size, line_y - font_size,
1, 1,
line_height as u32, line_height as u32,
0x20FFFFFF, color,
); );
let text_line = &self.text_lines()[line.line_i.get()]; let text_line = &self.text_lines()[line.line_i.get()];