summaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/ui/picker.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index e00fe1f8..05738ccf 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -733,7 +733,11 @@ impl<T: Item + 'static> Component for Picker<T> {
.map(|mut row| {
const TEMP_CELL_SEP: &str = " ";
- let line = row.cell_text().join(TEMP_CELL_SEP);
+ let line = row.cell_text().fold(String::new(), |mut s, frag| {
+ s.push_str(&frag);
+ s.push_str(TEMP_CELL_SEP);
+ s
+ });
// Items are filtered by using the text returned by menu::Item::filter_text
// but we do highlighting here using the text in Row and therefore there