summaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index dfa819db..c63e6e57 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -70,10 +70,11 @@ impl Application {
let area = self.terminal.size().unwrap();
compositor.render(area, self.terminal.current_buffer_mut(), &mut cx);
- let pos = compositor.cursor_position(area, &editor);
+ let pos = compositor
+ .cursor_position(area, &editor)
+ .map(|pos| (pos.col as u16, pos.row as u16));
- self.terminal.draw();
- self.terminal.set_cursor(pos.col as u16, pos.row as u16);
+ self.terminal.draw(pos);
}
pub async fn event_loop(&mut self) {