diff options
author | Ian Ward <ian@excess.org> | 2014-07-07 13:28:21 -0400 |
---|---|---|
committer | Ian Ward <ian@excess.org> | 2014-07-07 13:28:21 -0400 |
commit | 18b31686c3293fb9e8888836420b7bf273d5f34b (patch) | |
tree | 9d480a8ed1b6c867c5238cddd25dba9a5d51bbe4 | |
parent | 0a69fca00843cea8c1ac67145e69db84253e374d (diff) | |
parent | 7f684709562205a96a0d23d3fd6b27a6b07b07ed (diff) | |
download | urwid-18b31686c3293fb9e8888836420b7bf273d5f34b.tar.gz |
Merge pull request #71 from extempore/master
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): |