* usr/bin/byobu-status: LP: #1018538, #1073145

- fix select/copy/paste in iTerm2 and KDE
This commit is contained in:
Dustin Kirkland 2013-01-08 14:21:39 -06:00
commit 960d8744ac
2 changed files with 10 additions and 2 deletions

5
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Mon, 05 Nov 2012 13:48:13 +0100
byobu (5.22-0ubuntu1) raring; urgency=low

View file

@ -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