summaryrefslogtreecommitdiff
path: root/src/room.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/room.py')
-rw-r--r--src/room.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/room.py b/src/room.py
index b0b86383..4bb6b8b1 100644
--- a/src/room.py
+++ b/src/room.py
@@ -66,7 +66,8 @@ class Room(TextBuffer):
highlight_words = config.get('highlight_on', '').split(':')
for word in highlight_words:
if word and word.lower() in txt.lower():
- self.set_color_state(theme.COLOR_TAB_HIGHLIGHT)
+ if self.color_state != theme.COLOR_TAB_CURRENT:
+ self.set_color_state(theme.COLOR_TAB_HIGHLIGHT)
color = theme.COLOR_HIGHLIGHT_NICK
break
return color