summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-06-10 20:53:16 +0200
committermathieui <mathieui@mathieui.net>2013-06-10 20:53:16 +0200
commit4220c36021c17dc27136a09041b9c0a47f5e0a57 (patch)
treeee98432512afedbe5ffdce180312b253d8cf7aa8
parent31e55a451c1e609489c8dc61aa3d347bc5e5ef27 (diff)
downloadpoezio-4220c36021c17dc27136a09041b9c0a47f5e0a57.tar.gz
poezio-4220c36021c17dc27136a09041b9c0a47f5e0a57.tar.bz2
poezio-4220c36021c17dc27136a09041b9c0a47f5e0a57.tar.xz
poezio-4220c36021c17dc27136a09041b9c0a47f5e0a57.zip
Fix addstr_colored with colors that start with a -1
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index 33d7f55e..66b52f1d 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -166,7 +166,7 @@ class Win(object):
self._win.attron(curses.A_UNDERLINE)
elif attr_char == 'b':
self._win.attron(curses.A_BOLD)
- if attr_char in string.digits and attr_char != '':
+ if (attr_char in string.digits or attr_char == '-') and attr_char != '':
color_str = text[next_attr_char+1:text.find('}', next_attr_char)]
if ',' in color_str:
tup, char = read_tuple(color_str)