Sfoglia il codice sorgente

[PR] #24 from OldWorldOrdr: Fix bash 5.2 column cut off issue

Hykilpikonna 2 anni fa
parent
commit
e72fe4d934
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      neofetch

+ 2 - 2
neofetch

@@ -4636,8 +4636,8 @@ get_cols() {
         printf -v block_spaces "%${block_height}s"
 
         # Convert the spaces into rows of blocks.
-        [[ "$blocks"  ]] && cols+="${block_spaces// /${blocks}nl}"
-        [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}nl}"
+        [[ "$blocks"  ]] && cols+="${block_spaces// /${blocks}\[mnl}"
+        [[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[mnl}"
 
         # Determine the horizontal offset of the blocks.
         case $col_offset in