mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-21 20:08:48 +00:00
This removes (un)zooming on save which should not be necessary anymore with recent tmux versions (from 2.2 on?).
This commit is contained in:
parent
7c77c70483
commit
6d10ee01b6
@ -246,14 +246,8 @@ dump_windows() {
|
|||||||
fi
|
fi
|
||||||
# window_layout is not correct for zoomed windows
|
# window_layout is not correct for zoomed windows
|
||||||
if [[ "$window_flags" == *Z* ]]; then
|
if [[ "$window_flags" == *Z* ]]; then
|
||||||
# unmaximize the window
|
|
||||||
toggle_window_zoom "${session_name}:${window_index}"
|
|
||||||
# get correct window layout
|
# get correct window layout
|
||||||
window_layout="$(tmux display-message -p -t "${session_name}:${window_index}" -F "#{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
|
fi
|
||||||
echo "${line_type}${d}${session_name}${d}${window_index}${d}${window_active}${d}${window_flags}${d}${window_layout}"
|
echo "${line_type}${d}${session_name}${d}${window_index}${d}${window_active}${d}${window_flags}${d}${window_layout}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user