summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py1
-rw-r--r--src/windows.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index d6b4d6d9..9c135c87 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -278,6 +278,7 @@ class InfoTab(ChatTab):
self.input.refresh()
def on_enter(self):
+ # TODO duplicate
txt = self.input.get_text()
if txt.startswith('/') and not txt.startswith('//') and\
not txt.startswith('/me '):
diff --git a/src/windows.py b/src/windows.py
index 0f5371b3..f2cec0bd 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -167,6 +167,9 @@ class GlobalInfoBar(Win):
sorted_tabs = sorted(tabs, key=comp)
for tab in sorted_tabs:
color = tab.get_color_state()
+ if config.get('show_inactive_tabs', 'true') == 'false' and\
+ color == theme.COLOR_TAB_NORMAL:
+ continue
try:
self.addstr("%s" % str(tab.nb), curses.color_pair(color))
self.addstr("|", curses.color_pair(theme.COLOR_INFORMATION_BAR))