diff options
author | extempo <pub@extemporized.com> | 2014-07-07 20:11:02 +0300 |
---|---|---|
committer | extempo <pub@extemporized.com> | 2014-07-07 20:11:02 +0300 |
commit | 7f684709562205a96a0d23d3fd6b27a6b07b07ed (patch) | |
tree | 9d480a8ed1b6c867c5238cddd25dba9a5d51bbe4 | |
parent | 0a69fca00843cea8c1ac67145e69db84253e374d (diff) | |
download | urwid-7f684709562205a96a0d23d3fd6b27a6b07b07ed.tar.gz |
high color palette detection fix
-rwxr-xr-x | urwid/display_common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/urwid/display_common.py b/urwid/display_common.py index 789442f..ca71e0b 100755 --- a/urwid/display_common.py +++ b/urwid/display_common.py @@ -833,6 +833,8 @@ class BaseScreen(object): def large_h(desc): if not desc.startswith('h'): return False + if ',' in desc: + desc = desc.split(',',1)[0] num = int(desc[1:], 10) return num > 15 if large_h(foreground_high) or large_h(background_high): |