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

This commit is contained in:
Hykilpikonna 2022-10-04 11:57:54 -04:00 committed by GitHub
commit e72fe4d934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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