mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Fix cannot correctly get window size
A bug caused by not correctly unset IFS to read array
This commit is contained in:
1
neofetch
1
neofetch
@@ -3557,6 +3557,7 @@ get_window_size() {
|
|||||||
# user input so we have to use read to store the out
|
# user input so we have to use read to store the out
|
||||||
# -put as a variable.
|
# -put as a variable.
|
||||||
IFS=';t' read -d t -t 0.05 -sra term_size
|
IFS=';t' read -d t -t 0.05 -sra term_size
|
||||||
|
unset IFS
|
||||||
|
|
||||||
# Split the string into height/width.
|
# Split the string into height/width.
|
||||||
if [[ "$image_backend" == "tycat" ]]; then
|
if [[ "$image_backend" == "tycat" ]]; then
|
||||||
|
Reference in New Issue
Block a user