diff options
author | mathieui <mathieui@mathieui.net> | 2011-05-13 20:19:10 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-05-13 20:19:10 +0200 |
commit | 03a691c4d16e2b40c081d89629172c4f0ac870be (patch) | |
tree | d2b4e5e9474a912949934086e307456af66cfb2f /src/windows.py | |
parent | 3d43517a41dfd568400cffb2e7b480cec315498f (diff) | |
download | poezio-03a691c4d16e2b40c081d89629172c4f0ac870be.tar.gz poezio-03a691c4d16e2b40c081d89629172c4f0ac870be.tar.bz2 poezio-03a691c4d16e2b40c081d89629172c4f0ac870be.tar.xz poezio-03a691c4d16e2b40c081d89629172c4f0ac870be.zip |
Fix #2176, and remove useless stuff added by 2to3
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py index 75b08961..df361ed8 100644 --- a/src/windows.py +++ b/src/windows.py @@ -126,7 +126,7 @@ class Win(object): self._win.attron(curses.A_UNDERLINE) elif attr_char == 'b': self._win.attron(curses.A_BOLD) - elif attr_char in string.digits: + elif attr_char in string.digits and attr_char != '': self._win.attron(common.curses_color_pair(int(attr_char))) next_attr_char = text.find('\x19') self.addstr(text) |