mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
LP: #1073145
- fix the status bar width reset even when widows width has not changed
This commit is contained in:
parent
6d23a0d2e6
commit
c5b1145b40
1 changed files with 1 additions and 2 deletions
|
@ -37,8 +37,7 @@ done
|
||||||
|
|
||||||
# Fix status printing for small terminal sizes
|
# Fix status printing for small terminal sizes
|
||||||
width=$(tmux list-windows -F "#{session_width}")
|
width=$(tmux list-windows -F "#{session_width}")
|
||||||
w_last=0
|
if [ -r "$BYOBU_RUN_DIR/width" ]; then read w_last < $BYOBU_RUN_DIR/width 2>/dev/null 1>&2; else w_last=0; fi
|
||||||
[ -r "$BYOBU_RUN_DIR/width" ] && read w_last < $BYOBU_RUN_DIR/width 2>/dev/null 1>&2 || w_last=0
|
|
||||||
for w in $width; do
|
for w in $width; do
|
||||||
if [ "$w" != "$w_last" ]; then
|
if [ "$w" != "$w_last" ]; then
|
||||||
tmux set -g status-left-length $(($w*1/4)) >/dev/null 2>&1
|
tmux set -g status-left-length $(($w*1/4)) >/dev/null 2>&1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue