Unverified Commit 926fc4ed authored by M. Herdiansyah's avatar M. Herdiansyah Committed by GitHub

Merge pull request #1048 from StarryTony/patch-2

Fix cannot correctly get window size
parents 17f2f5b2 5037d312
...@@ -3564,6 +3564,7 @@ get_window_size() { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment