1
0
Fork 0
mirror of synced 2024-11-17 23:15:35 -05:00

updated _maximize_pane() that stopped working with tmux 3.2 (2)

fixed SC2014 violation

SC2034 (warning): current_pane_height appears unused. Verify use (or export if used externally)
This commit is contained in:
Gregory Pakosz 2023-03-05 17:26:21 +01:00
parent f27641c846
commit f930dbe12a

View file

@ -267,7 +267,6 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
#
# if [ -z "$restore" ]; then
# [ "$(tmux list-panes -t "$current_session:" | wc -l | sed 's/^ *//g')" -eq 1 ] && tmux display "Can't maximize with only one pane" && return
# current_pane_height=$(tmux display -t "$current_pane" -p "#{pane_height}")
# info=$(tmux new-window -t "$current_session:" -F "#{session_name}:#{window_index}.#{pane_id}" -P "maximized... 2>/dev/null & \"$TMUX_PROGRAM\" ${TMUX_SOCKET:+-S \"$TMUX_SOCKET\"} setw -t \"$current_session:\" remain-on-exit on; printf \"\\033[\$(tput lines);0fPane has been maximized, press <prefix>+ to restore\n\" '$current_pane'")
# session_window=${info%.*}
# new_pane=${info#*.}