From 6d10ee01b603d4e3a6f6205038e4be36c200b0ba Mon Sep 17 00:00:00 2001 From: Wouter R Date: Wed, 24 Jan 2018 14:24:34 +0100 Subject: [PATCH] Fix https://github.com/tmux-plugins/tmux-resurrect/issues/176. This removes (un)zooming on save which should not be necessary anymore with recent tmux versions (from 2.2 on?). --- scripts/save.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/save.sh b/scripts/save.sh index 7ce2b99..b52ef48 100755 --- a/scripts/save.sh +++ b/scripts/save.sh @@ -246,14 +246,8 @@ dump_windows() { fi # window_layout is not correct for zoomed windows if [[ "$window_flags" == *Z* ]]; then - # unmaximize the window - toggle_window_zoom "${session_name}:${window_index}" # get correct window layout window_layout="$(tmux display-message -p -t "${session_name}:${window_index}" -F "#{window_layout}")" - # sleep required otherwise vim does not redraw correctly, issue #112 - sleep 0.1 || sleep 1 # portability hack - # maximize window again - toggle_window_zoom "${session_name}:${window_index}" fi echo "${line_type}${d}${session_name}${d}${window_index}${d}${window_active}${d}${window_flags}${d}${window_layout}" done