mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-22 04:18:48 +00:00
Fix a zoomed windows related regression
This commit is contained in:
parent
47db8198d3
commit
708cd49d31
@ -1,6 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
### master
|
### master
|
||||||
|
- bugfix: zoomed windows related regression
|
||||||
|
|
||||||
### v2.1.0, 2015-02-12
|
### v2.1.0, 2015-02-12
|
||||||
- if restore is started when there's only **1 pane in the whole tmux server**,
|
- if restore is started when there's only **1 pane in the whole tmux server**,
|
||||||
|
@ -66,6 +66,13 @@ is_session_grouped() {
|
|||||||
[[ "$GROUPED_SESSIONS" == *"${d}${session_name}${d}"* ]]
|
[[ "$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
|
# path helpers
|
||||||
|
|
||||||
resurrect_dir() {
|
resurrect_dir() {
|
||||||
|
@ -245,13 +245,6 @@ restore_active_pane_for_each_window() {
|
|||||||
done
|
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() {
|
restore_grouped_sessions() {
|
||||||
while read line; do
|
while read line; do
|
||||||
if is_line_type "grouped_session" "$line"; then
|
if is_line_type "grouped_session" "$line"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user