From d5c32a1805264cc3cf34fdbe414b3a1ff2cde7b0 Mon Sep 17 00:00:00 2001
From: Dylan Araps <dylan.araps@gmail.com>
Date: Thu, 9 Jun 2016 16:09:20 +1000
Subject: [PATCH] Fix color blocks bug

---
 neofetch | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/neofetch b/neofetch
index cc055280..13e02dcc 100755
--- a/neofetch
+++ b/neofetch
@@ -24,6 +24,7 @@
 # https://github.com/dylanaraps/
 
 version="${BASH_VERSION/.*}"
+
 SYS_LOCALE="${LANG:-C}"
 XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
 
@@ -2110,8 +2111,8 @@ getcols () {
         spaces="$(printf "%${block_height}s")"
 
         # Convert the spaces into rows of blocks.
-        [ ! -z "$blocks" ] &&  cols+=${spaces// /${blocks}\033[0mnl}
-        [ ! -z "$blocks2" ] && cols+=${spaces// /${blocks2}\033[0mnl}
+        [ ! -z "$blocks" ] &&  cols+=${spaces// /${blocks}"\033[0m"nl}
+        [ ! -z "$blocks2" ] && cols+=${spaces// /${blocks2}"\033[0m"nl}
 
         # Add newlines to the string.
         cols=${cols%%'nl'}