summaryrefslogtreecommitdiff
path: root/helix-term/src/ui/prompt.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-27 15:00:51 +0000
committerBlaž Hrastnik2021-05-27 15:00:51 +0000
commit094203c74e19d49b3bfc74cf2ab4f853a773c195 (patch)
tree707927ed1734a504131450a84bdf71d76baf7585 /helix-term/src/ui/prompt.rs
parentb114cfa119bc94396f1ed38109a51183035574ed (diff)
Update deps, introduce the new tree-sitter lifetimes
Diffstat (limited to 'helix-term/src/ui/prompt.rs')
-rw-r--r--helix-term/src/ui/prompt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs
index 9bde1f57..dbbef72c 100644
--- a/helix-term/src/ui/prompt.rs
+++ b/helix-term/src/ui/prompt.rs
@@ -272,7 +272,7 @@ impl Component for Prompt {
fn cursor_position(&self, area: Rect, editor: &Editor) -> Option<Position> {
Some(Position::new(
- area.height as usize,
+ area.y as usize,
area.x as usize + self.prompt.len() + self.cursor,
))
}