Merge pull request #1048 from StarryTony/patch-2

Fix cannot correctly get window size
This commit is contained in:
M. Herdiansyah 2018-08-24 12:05:59 +07:00 committed by GitHub
commit 926fc4edde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -3564,6 +3564,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