rendering cursor correctly

This commit is contained in:
Mikayla Maki
2022-07-01 13:03:26 -07:00
parent f4ac694ad8
commit 62939322d3
3 changed files with 34 additions and 10 deletions
+1 -1
View File
@@ -490,7 +490,7 @@ impl EditorElement {
}
let block_text =
if matches!(self.cursor_shape, CursorShape::Block) {
if let CursorShape::Block = self.cursor_shape {
layout.snapshot.chars_at(cursor_position).next().and_then(
|character| {
let font_id =