diff --git a/src/menu.rs b/src/menu.rs index 6f2102c..3ceeb3a 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -304,11 +304,7 @@ impl Menu { } // truncate long lines, instead of wrapping - let text = if line.text_len() > MAX_COLS { - &line.text(&self.raw)[..MAX_COLS] - } else { - &line.text(&self.raw) - }; + let text = line.text(&self.raw).chars().take(MAX_COLS).collect::(); // color the line if line.typ.is_download() {