mirror of https://github.com/helix-editor/helix
patch info
parent
5fbc086ccd
commit
79f5b252d9
|
@ -61,7 +61,7 @@ impl Info {
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
title: title.to_string(),
|
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: (body.len() + newlines) as u16,
|
||||||
height,
|
height,
|
||||||
text,
|
text,
|
||||||
|
|
Loading…
Reference in New Issue