Fix cannot correctly get window size

A bug caused by not correctly unset IFS to read array
This commit is contained in:
Tony 2018-06-30 00:44:56 +01:00 committed by GitHub
parent 22df76c3b6
commit 5037d312fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3557,6 +3557,7 @@ get_window_size() {
# user input so we have to use read to store the out
# -put as a variable.
IFS=';t' read -d t -t 0.05 -sra term_size
unset IFS
# Split the string into height/width.
if [[ "$image_backend" == "tycat" ]]; then