summaryrefslogtreecommitdiff
path: root/poezio/theming.py
diff options
context:
space:
mode:
authorLink Mauve <linkmauve@linkmauve.fr>2020-05-24 22:43:50 +0200
committerLink Mauve <linkmauve@linkmauve.fr>2020-05-24 22:43:50 +0200
commit0ddcde70c8d03eed6f94b4a40dc89e7929caf8e1 (patch)
treee688bfcf0f5701a5d27e017c22cdfd9334d58c5d /poezio/theming.py
parentcf131af4a877d1c19ff93cd618b7d936847311d6 (diff)
parent66cd8e54b05aab10bc8eafae77fdbb4e30fed45b (diff)
downloadpoezio-0ddcde70c8d03eed6f94b4a40dc89e7929caf8e1.tar.gz
poezio-0ddcde70c8d03eed6f94b4a40dc89e7929caf8e1.tar.bz2
poezio-0ddcde70c8d03eed6f94b4a40dc89e7929caf8e1.tar.xz
poezio-0ddcde70c8d03eed6f94b4a40dc89e7929caf8e1.zip
Merge branch 'check-colors-startup' into 'master'
Check colors on startup and warn See merge request poezio/poezio!120
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 fc34ae39..6f1d8226 100755
--- a/poezio/theming.py
+++ b/poezio/theming.py
@@ -448,7 +448,7 @@ def to_curses_attr(
colors = color_tuple
bold = False
- if curses.COLORS != 256:
+ if curses.COLORS < 256:
# We are not in a term supporting 256 colors, so we convert
# colors to numbers between -1 and 8
colors = (color_256_to_16(colors[0]), color_256_to_16(colors[1]))