neofetch: Fix cursor placement issue

This commit is contained in:
Dylan Araps 2020-10-04 14:34:57 +03:00
parent a4d9c557b3
commit 1c468b4e31
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 9 additions and 2 deletions

View File

@ -3804,7 +3804,7 @@ get_cols() {
[${text_padding}C${zws}}
# Add block height to info height.
((info_height+=block_range[1]>7?block_height+3:block_height+2))
((info_height+=block_range[1]>7?block_height+2:block_height+1))
case $col_offset in
"auto") printf '\n\e[%bC%b\n' "$text_padding" "${zws}${cols}" ;;
@ -3885,7 +3885,14 @@ print_ascii() {
done <<< "${ascii_data//\$\{??\}}"
# Fallback if file not found.
((lines==1)) && { lines=; ascii_len=; image_source=auto; get_distro_ascii; print_ascii; return; }
((lines==1)) && {
lines=
ascii_len=
image_source=auto
get_distro_ascii
print_ascii
return
}
# Colors.
ascii_data="${ascii_data//\$\{c1\}/$c1}"