diff --git a/debian/changelog b/debian/changelog index 776c245b..3ee9d976 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ byobu (5.23) unreleased; urgency=low + [ Dustin Kirkland ] * configure.ac, debian/control, debian/copyright, README, usr/lib/byobu/rcs_cost, usr/share/man/man1/byobu.1, usr/share/man/man1/byobu-config.1, usr/share/man/man1/byobu-ctrl- @@ -18,6 +19,10 @@ byobu (5.23) unreleased; urgency=low - point to the new byobu.co website rather than the launchpad landing page + [ Antonio Lorusso ] + * usr/bin/byobu-status: LP: #1018538, #1073145 + - fix select/copy/paste in iTerm2 and KDE + -- Dustin Kirkland Mon, 05 Nov 2012 13:48:13 +0100 byobu (5.22-0ubuntu1) raring; urgency=low diff --git a/usr/bin/byobu-status b/usr/bin/byobu-status index b3bec705..e43ab733 100755 --- a/usr/bin/byobu-status +++ b/usr/bin/byobu-status @@ -37,8 +37,11 @@ done # Fix status printing for small terminal sizes width=$(tmux list-windows -F "#{session_width}") -w_last=0 -[ -r "$BYOBU_RUN_DIR/width" ] && read w_last < $BYOBU_RUN_DIR/width 2>/dev/null 1>&2 || 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 for w in $width; do if [ "$w" != "$w_last" ]; then tmux set -g status-left-length $(($w*1/4)) >/dev/null 2>&1