Commit 199dadd5 authored by Dylan Araps's avatar Dylan Araps

Images: Fix bug with getting terminal size

parent 0af39a6d
......@@ -2232,7 +2232,7 @@ get_term_size() {
fi
# Get terminal width/height if \033[14t is unsupported.
if [[ -z "$term_width" && "$image_backend" == "w3m" ]]; then
if [[ -z "$term_width" ]]; then
if type -p xdotool >/dev/null 2>&1; then
current_window="$(xdotool getactivewindow)"
source <(xdotool getwindowgeometry --shell "$current_window")
......
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