neofetch: Fix cursor placement issue
This commit is contained in:
parent
a4d9c557b3
commit
1c468b4e31
11
neofetch
11
neofetch
|
@ -3804,7 +3804,7 @@ get_cols() {
|
||||||
[${text_padding}C${zws}}
|
[${text_padding}C${zws}}
|
||||||
|
|
||||||
# Add block height to info height.
|
# 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
|
case $col_offset in
|
||||||
"auto") printf '\n\e[%bC%b\n' "$text_padding" "${zws}${cols}" ;;
|
"auto") printf '\n\e[%bC%b\n' "$text_padding" "${zws}${cols}" ;;
|
||||||
|
@ -3885,7 +3885,14 @@ print_ascii() {
|
||||||
done <<< "${ascii_data//\$\{??\}}"
|
done <<< "${ascii_data//\$\{??\}}"
|
||||||
|
|
||||||
# Fallback if file not found.
|
# 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.
|
# Colors.
|
||||||
ascii_data="${ascii_data//\$\{c1\}/$c1}"
|
ascii_data="${ascii_data//\$\{c1\}/$c1}"
|
||||||
|
|
Reference in New Issue