summaryrefslogtreecommitdiff
path: root/src/room.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-04-17 00:49:49 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-04-17 00:49:49 +0200
commitf509c3ee22c280d78ca5c360ad476e72d6f78df0 (patch)
tree8a2bf964d488a9f8eaa40211f496e6c03c150030 /src/room.py
parentbf2bd33bd3538c3dbb4fa42ce46242435f98d8ec (diff)
downloadpoezio-f509c3ee22c280d78ca5c360ad476e72d6f78df0.tar.gz
poezio-f509c3ee22c280d78ca5c360ad476e72d6f78df0.tar.bz2
poezio-f509c3ee22c280d78ca5c360ad476e72d6f78df0.tar.xz
poezio-f509c3ee22c280d78ca5c360ad476e72d6f78df0.zip
idem etc
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