summaryrefslogtreecommitdiff
path: root/src/text_buffer.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-29 14:35:59 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-03-29 14:35:59 +0200
commit38cffe43b6adab115fb65635034a0b2db9f2c26d (patch)
treeb45e751374b8e0da8bf4046ae8c555d1b0cf5cee /src/text_buffer.py
parent8b032a6ece601c74ea0d9cf4f0c7a3e1ae72bcb2 (diff)
downloadpoezio-38cffe43b6adab115fb65635034a0b2db9f2c26d.tar.gz
poezio-38cffe43b6adab115fb65635034a0b2db9f2c26d.tar.bz2
poezio-38cffe43b6adab115fb65635034a0b2db9f2c26d.tar.xz
poezio-38cffe43b6adab115fb65635034a0b2db9f2c26d.zip
Message and complete words can now be colored even if the
take more than one line to be displayed.
Diffstat (limited to 'src/text_buffer.py')
-rw-r--r--src/text_buffer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text_buffer.py b/src/text_buffer.py
index 1c112222..a53eedf6 100644
--- a/src/text_buffer.py
+++ b/src/text_buffer.py
@@ -48,7 +48,7 @@ class TextBuffer(object):
if not nickname:
txt = '\x195%s' % (txt,)
nick_color = nick_color
- msg = Message(txt=txt, nick_color=nick_color,
+ msg = Message(txt='%s\x19o'%(txt,), nick_color=nick_color,
time=time or datetime.now(), nickname=nickname, user=None)
self.messages.append(msg)
while len(self.messages) > self.messages_nb_limit: