Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/prompt.rs')
-rw-r--r--helix-term/src/ui/prompt.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs
index d2448335..ff4ca1fc 100644
--- a/helix-term/src/ui/prompt.rs
+++ b/helix-term/src/ui/prompt.rs
@@ -779,7 +779,8 @@ impl Component for Prompt {
col += self.line[self.cursor..]
.graphemes(true)
.next()
- .map_or(0, |g| g.width());
+ .unwrap()
+ .width();
}
let line = area.height as usize - 1;