render character under block cursor

This commit is contained in:
Keith Simmons
2022-03-10 13:16:31 -08:00
parent 0d42c85195
commit eddb089f27
3 changed files with 66 additions and 19 deletions
+2 -2
View File
@@ -1023,9 +1023,9 @@ impl Editor {
cx.notify();
}
pub fn set_cursor_shape(&mut self, cursor_shape: CursorShape) {
pub fn set_cursor_shape(&mut self, cursor_shape: CursorShape, cx: &mut ViewContext<Self>) {
self.cursor_shape = cursor_shape;
// TODO: Do we need to notify?
cx.notify();
}
pub fn scroll_position(&self, cx: &mut ViewContext<Self>) -> Vector2F {