* usr/bin/byobu-select-session: LP: #1182776

- skip sessions that are just whitespace
This commit is contained in:
Dustin Kirkland 2013-05-22 15:43:12 -05:00
commit 946a9efc44
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -5,6 +5,8 @@ byobu (5.42) unreleased; urgency=low
- install byobu-ugraph
* usr/lib/byobu/wifi_quality:
- clear wifi status indicator when there is no wifi connection
* usr/bin/byobu-select-session: LP: #1182776
- skip sessions that are just whitespace
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 09 May 2013 09:06:07 -0500

View file

@ -56,7 +56,7 @@ def get_sessions():
for s in output.splitlines():
s = re.sub(r'\s+', ' ', s)
# Ignore hidden sessions (named sessions that start with a ".")
if s and (s.find(" ") == 0 and len(s) > 1 and s.count("..") == 0):
if s and s != " " and (s.find(" ") == 0 and len(s) > 1 and s.count("..") == 0):
text.append("screen: %s" % s.strip())
items = s.split(" ")
sessions.append("screen____%s" % items[1])