pull/14/head
✨ Q (it/its) ✨ 4 years ago committed by GitHub
parent 3791c9c64f
commit 8ce045ef16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -304,11 +304,7 @@ impl Menu {
} }
// truncate long lines, instead of wrapping // truncate long lines, instead of wrapping
let text = if line.text_len() > MAX_COLS { let text = line.text(&self.raw).chars().take(MAX_COLS).collect::<String>();
&line.text(&self.raw)[..MAX_COLS]
} else {
&line.text(&self.raw)
};
// color the line // color the line
if line.typ.is_download() { if line.typ.is_download() {

Loading…
Cancel
Save