[F] Fix incorrect ascii length when backslashes are present

https://github.com/dylanaraps/neofetch/pull/1543
https://github.com/hykilpikonna/hyfetch/issues/19
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-09-05 17:27:40 -04:00
parent 59fa4e5ecc
commit e44040b2aa
No known key found for this signature in database
GPG key ID: E289FAC0DA92DD2B

View file

@ -4712,7 +4712,7 @@ print_ascii() {
then
lines=$ascii_lines
else
while IFS=$'\n' read -r line; do
while IFS=$'\n' read line; do
line=${line//█/ }
# Fast method to strip codes
strip_escape_codes "${line}" line