From 79f5b252d960435a3ad23ac85f9b10792724bad3 Mon Sep 17 00:00:00 2001 From: mattwparas Date: Wed, 23 Aug 2023 09:29:42 -0700 Subject: [PATCH] patch info --- helix-view/src/info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-view/src/info.rs b/helix-view/src/info.rs index f75a8913e..0fc77acea 100644 --- a/helix-view/src/info.rs +++ b/helix-view/src/info.rs @@ -61,7 +61,7 @@ impl Info { Self { title: title.to_string(), - width: text.lines().map(|l| l.width()).max().unwrap() as u16, + width: text.lines().map(|l| l.width()).max().unwrap_or(body.len()) as u16, // height: (body.len() + newlines) as u16, height, text,