aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/info.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/helix-view/src/info.rs b/helix-view/src/info.rs
index fbe27ea0..5ad6a60c 100644
--- a/helix-view/src/info.rs
+++ b/helix-view/src/info.rs
@@ -58,7 +58,12 @@ impl Info {
.inner()
.iter()
.map(|(ch, reg)| {
- let content = reg.read().join(", ").trim_end().to_string();
+ let content = reg
+ .read()
+ .get(0)
+ .and_then(|s| s.lines().next())
+ .map(String::from)
+ .unwrap_or_default();
(ch.to_string(), content)
})
.collect();