aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/ui/picker.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index 82543bc5..d1152659 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -289,7 +289,7 @@ impl<T: 'static> Component for Picker<T> {
surface.set_string(inner.x + 1, inner.y + 2 + i as u16, ">", selected);
}
- surface.set_stringn(
+ surface.set_string_truncated(
inner.x + 3,
inner.y + 2 + i as u16,
(self.format_fn)(option),
@@ -299,6 +299,7 @@ impl<T: 'static> Component for Picker<T> {
} else {
style
},
+ true,
);
}
}