This commit is contained in:
David Buchanan 2026-08-05 15:19:30 +01:00 committed by GitHub
commit 6280d1d65c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5784,11 +5784,11 @@ get_cols() {
# Convert the spaces into rows of blocks.
if [ "${BASH_VERSION%%.*}" -lt 5 ]; then
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}nl}"
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}nl}"
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\\e[39;49mnl}"
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\\e[0mnl}"
else
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\[39;49mnl}"
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\[0mnl}"
[[ "$blocks" ]] && cols+="${block_spaces// /${blocks}\\e\[39;49mnl}"
[[ "$blocks2" ]] && cols+="${block_spaces// /${blocks2}\\e\[0mnl}"
fi
# Determine the horizontal offset of the blocks.
@ -5800,7 +5800,7 @@ get_cols() {
# Add newlines to the string.
cols=${cols%%nl}
cols=${cols//nl/
[${block_offset}C${zws}}
\\e[${block_offset}C${zws}}
# Add block height to info height.
((info_height+=block_range[1]>7?block_height+2:block_height+1))