Skip to content

Commit 6d10ee0

Browse files
committed
Fix #176.
This removes (un)zooming on save which should not be necessary anymore with recent tmux versions (from 2.2 on?).
1 parent 7c77c70 commit 6d10ee0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

scripts/save.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,8 @@ dump_windows() {
246246
fi
247247
# window_layout is not correct for zoomed windows
248248
if [[ "$window_flags" == *Z* ]]; then
249-
# unmaximize the window
250-
toggle_window_zoom "${session_name}:${window_index}"
251249
# get correct window layout
252250
window_layout="$(tmux display-message -p -t "${session_name}:${window_index}" -F "#{window_layout}")"
253-
# sleep required otherwise vim does not redraw correctly, issue #112
254-
sleep 0.1 || sleep 1 # portability hack
255-
# maximize window again
256-
toggle_window_zoom "${session_name}:${window_index}"
257251
fi
258252
echo "${line_type}${d}${session_name}${d}${window_index}${d}${window_active}${d}${window_flags}${d}${window_layout}"
259253
done

0 commit comments

Comments
 (0)