@@ -34,7 +34,6 @@ TRUNCATE_BRANCH=35 # Default: truncate branch names to 35 chars
3434TRUNCATE_PR_TITLE=0 # Default: no PR title truncation (0 = disabled)
3535ONLY_REQUIRED_CI=1 # Default: CI status only reflects required checks
3636SHOW_ALL=0 # Default: --show-in-progress (hide merged/closed PRs)
37- TERM_COLS=" ${COLUMNS:- $(tput cols 2>/ dev/ null || echo 0)} "
3837
3938while [[ $# -gt 0 ]]; do
4039 case " $1 " in
@@ -926,20 +925,6 @@ if [[ "$OUTPUT_FORMAT" == "osc8" ]]; then
926925 pad_str=$( printf ' %*s' " $padding " ' ' )
927926 pr_num_display=$( printf ' %*s' " $max_pr_num_width " " #${pr_num} " )
928927
929- # Terminal-width-aware title truncation
930- if [[ " $TERM_COLS " -gt 0 ]]; then
931- if [[ " $SHOW_STATUS " -eq 1 ]]; then
932- # prefix = col1 + pad + review(2col) + ci(2col) + " " + pr_num + " "
933- prefix_width=$(( col2 _start + 4 + 1 + max_pr_num_width + 2 ))
934- else
935- prefix_width=$(( col2 _start + max_pr_num_width + 2 ))
936- fi
937- max_title_width=$(( TERM_COLS - prefix_width))
938- if [[ " $max_title_width " -gt 3 ]]; then
939- title=$( truncate_str " $title " " $max_title_width " )
940- fi
941- fi
942-
943928 if [[ " $SHOW_STATUS " -eq 1 ]]; then
944929 review=" ${pr_review[$branch]} "
945930 ci=" ${pr_ci[$branch]} "
@@ -1097,20 +1082,6 @@ for cleaned in "${cleaned_lines[@]}"; do
10971082 # Right-align PR number within its column
10981083 pr_num_display=$( printf ' %*s' " $max_pr_num_width " " #${pr_num} " )
10991084
1100- # Terminal-width-aware title truncation
1101- if [[ " $TERM_COLS " -gt 0 ]]; then
1102- if [[ " $SHOW_STATUS " -eq 1 ]]; then
1103- # prefix = col1 + pad + review(2col) + ci(2col) + " " + pr_num + " "
1104- prefix_width=$(( col2 _start + 4 + 1 + max_pr_num_width + 2 ))
1105- else
1106- prefix_width=$(( col2 _start + max_pr_num_width + 2 ))
1107- fi
1108- max_title_width=$(( TERM_COLS - prefix_width))
1109- if [[ " $max_title_width " -gt 3 ]]; then
1110- title=$( truncate_str " $title " " $max_title_width " )
1111- fi
1112- fi
1113-
11141085 if [[ " $SHOW_STATUS " -eq 1 ]]; then
11151086 review=" ${pr_review[$branch]} "
11161087 ci=" ${pr_ci[$branch]} "
0 commit comments