From be2d486c41f5c9bdec11d42047f44e7fb40713ff Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 4 Oct 2016 09:43:51 +1100 Subject: [PATCH] Fix broken progress bars --- neofetch | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/neofetch b/neofetch index f24f1eb8..9d6d4faa 100755 --- a/neofetch +++ b/neofetch @@ -2361,14 +2361,6 @@ info() { # Trim whitespace output="$(trim "$output")" - # Fix rendering issues with w3m and lines that - # wrap to the next line by adding a max line - # length. - if [ "$image" != "off" ] && [ "$image" != "ascii" ] && [ "$1" != "cols" ]; then - padding_num="${padding/\\033\[}" - output="$(printf "%.$((columns - ${padding_num/C} - gap - ${#subtitle}))s" "$output")" - fi - case "$1" in title) string="${title_color}${bold}${output}" @@ -2404,14 +2396,6 @@ info() { prin() { string="$1${2:+: $2}" - # Fix rendering issues with w3m and lines that - # wrap to the next line by adding a max line - # length. - if [ "$image" != "off" ] && [ "$image" != "ascii" ]; then - padding_num="${padding/\\033\[}" - string="$(printf "%.$((columns - ${padding_num/C} - gap))s" "$string")" - fi - # If $2 doesn't exist we format $1 as info if [ -z "$2" ]; then subtitle_color="$info_color"