summaryrefslogtreecommitdiff
path: root/poezio/theming.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/theming.py')
-rwxr-xr-xpoezio/theming.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/theming.py b/poezio/theming.py
index 813f8bc0..d007e463 100755
--- a/poezio/theming.py
+++ b/poezio/theming.py
@@ -445,7 +445,7 @@ def to_curses_attr(color_tuple):
curses_pair = curses_pair | curses.A_BOLD
if 'u' in additional_val:
curses_pair = curses_pair | curses.A_UNDERLINE
- if 'i' in additional_val:
+ if 'i' in additional_val and hasattr(curses, 'A_ITALIC'):
curses_pair = curses_pair | curses.A_ITALIC
if 'a' in additional_val:
curses_pair = curses_pair | curses.A_BLINK