From eebef409fd6bfc4b0d7d43ce744a972aa93f8936 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 23 Dec 2016 23:46:51 +1100 Subject: [PATCH] Dynamic Prompt: Simplify math --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 15bb8f2f..b623db35 100755 --- a/neofetch +++ b/neofetch @@ -2909,7 +2909,7 @@ dynamic_prompt() { get_term_padding 2>/dev/null # Calculate image height in terminal cells. - lines="$(((height + (${border:-0} * 2) + ${yoffset:-0}) / font_height))" + lines="$(((border * 2 + height + yoffset) / font_height))" ;; "off") return ;; esac