mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* usr/bin/byobu-select-session: LP: #1182776
- skip sessions that are just whitespace
This commit is contained in:
parent
c9c672a60c
commit
946a9efc44
2 changed files with 3 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -5,6 +5,8 @@ byobu (5.42) unreleased; urgency=low
|
||||||
- install byobu-ugraph
|
- install byobu-ugraph
|
||||||
* usr/lib/byobu/wifi_quality:
|
* usr/lib/byobu/wifi_quality:
|
||||||
- clear wifi status indicator when there is no wifi connection
|
- 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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 09 May 2013 09:06:07 -0500
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ def get_sessions():
|
||||||
for s in output.splitlines():
|
for s in output.splitlines():
|
||||||
s = re.sub(r'\s+', ' ', s)
|
s = re.sub(r'\s+', ' ', s)
|
||||||
# Ignore hidden sessions (named sessions that start with a ".")
|
# 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())
|
text.append("screen: %s" % s.strip())
|
||||||
items = s.split(" ")
|
items = s.split(" ")
|
||||||
sessions.append("screen____%s" % items[1])
|
sessions.append("screen____%s" % items[1])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue