From 4220c36021c17dc27136a09041b9c0a47f5e0a57 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 10 Jun 2013 20:53:16 +0200 Subject: Fix addstr_colored with colors that start with a -1 --- src/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3