Skip to content

Commit

Permalink
updated _maximize_pane() that stopped working with tmux 3.2 (2)
Browse files Browse the repository at this point in the history
fixed SC2014 violation

SC2034 (warning): current_pane_height appears unused. Verify use (or export if used externally)
  • Loading branch information
gpakosz committed Mar 5, 2023
1 parent f27641c commit f930dbe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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#*.}
Expand Down

0 comments on commit f930dbe

Please sign in to comment.