From 7f684709562205a96a0d23d3fd6b27a6b07b07ed Mon Sep 17 00:00:00 2001 From: extempo Date: Mon, 7 Jul 2014 20:11:02 +0300 Subject: high color palette detection fix --- urwid/display_common.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- cgit v1.2.1