summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/windows/base_wins.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/windows/base_wins.py b/src/windows/base_wins.py
index 915242a9..464c6fa1 100644
--- a/src/windows/base_wins.py
+++ b/src/windows/base_wins.py
@@ -137,6 +137,10 @@ class Win(object):
self._win.attron(curses.A_UNDERLINE)
elif char == 'b':
self._win.attron(curses.A_BOLD)
+ else:
+ # this will reset previous bold/uderline sequences if any was used
+ self._win.attroff(curses.A_UNDERLINE)
+ self._win.attroff(curses.A_BOLD)
elif color_str:
self._win.attron(to_curses_attr((int(color_str), -1)))
text = text[next_attr_char+len(color_str)+2:]