Cols: Fixed color_blocks=off causing an extra newline to be printed

This commit is contained in:
Dylan Araps 2017-01-23 23:59:21 +11:00
parent 611c88b29c
commit e4ffa945f9
1 changed files with 3 additions and 1 deletions

View File

@ -1940,9 +1940,11 @@ get_cols() {
cols="${cols//nl/\\n\\033[${text_padding}C${zws}}"
printf "%b\n" "\033[${text_padding}C${zws}${cols}"
info_height="$((info_height+=block_height+2))"
else
printf "\n"
fi
info_height="$((info_height+=block_height+2))"
unset -v blocks blocks2 cols
# Tell info() that we printed manually.