Fix a zoomed windows related regression

This commit is contained in:
Bruno Sutic 2015-02-12 12:46:48 +01:00
parent 47db8198d3
commit 708cd49d31
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
3 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,7 @@
# Changelog
### master
- bugfix: zoomed windows related regression
### v2.1.0, 2015-02-12
- if restore is started when there's only **1 pane in the whole tmux server**,

View File

@ -66,6 +66,13 @@ is_session_grouped() {
[[ "$GROUPED_SESSIONS" == *"${d}${session_name}${d}"* ]]
}
restore_zoomed_windows() {
awk 'BEGIN { FS="\t"; OFS="\t" } /^pane/ && $6 ~ /Z/ && $9 == 1 { print $2, $3; }' $(last_resurrect_file) |
while IFS=$d read session_name window_number; do
tmux resize-pane -t "${session_name}:${window_number}" -Z
done
}
# path helpers
resurrect_dir() {

View File

@ -245,13 +245,6 @@ restore_active_pane_for_each_window() {
done
}
restore_zoomed_windows() {
awk 'BEGIN { FS="\t"; OFS="\t" } /^pane/ && $6 ~ /Z/ && $9 == 1 { print $2, $3; }' $(last_resurrect_file) |
while IFS=$d read session_name window_number; do
tmux resize-pane -t "${session_name}:${window_number}" -Z
done
}
restore_grouped_sessions() {
while read line; do
if is_line_type "grouped_session" "$line"; then