don't break zoom state
This commit is contained in:
parent
428579d8e3
commit
0a0808671d
|
@ -42,13 +42,14 @@ function zoom_pane() {
|
||||||
function revert_to_original_pane() {
|
function revert_to_original_pane() {
|
||||||
tmux swap-pane -s "$current_pane_id" -t "$fingers_pane_id"
|
tmux swap-pane -s "$current_pane_id" -t "$fingers_pane_id"
|
||||||
tmux kill-window -t "$fingers_window_id"
|
tmux kill-window -t "$fingers_window_id"
|
||||||
[[ $pane_was_zoomed == "1" ]] && zoom_pane "$current_pane_id"
|
|
||||||
tmux set-window-option automatic-rename "$original_rename_setting"
|
tmux set-window-option automatic-rename "$original_rename_setting"
|
||||||
|
|
||||||
if [[ ! -z "$last_pane_id" ]]; then
|
if [[ ! -z "$last_pane_id" ]]; then
|
||||||
tmux select-pane -t "$last_pane_id"
|
tmux select-pane -t "$last_pane_id"
|
||||||
tmux select-pane -t "$current_pane_id"
|
tmux select-pane -t "$current_pane_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[[ $pane_was_zoomed == "1" ]] && zoom_pane "$current_pane_id"
|
||||||
}
|
}
|
||||||
|
|
||||||
function handle_exit() {
|
function handle_exit() {
|
||||||
|
|
Loading…
Reference in New Issue