From b7504c7178aa4a4d36827cb8697c3c407db4690c Mon Sep 17 00:00:00 2001 From: ZyX Date: Thu, 4 Sep 2014 22:08:36 +0400 Subject: [PATCH] Do not require using `priority_multiplier` key --- powerline/segment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/segment.py b/powerline/segment.py index 0f19f786..7c11ed8d 100644 --- a/powerline/segment.py +++ b/powerline/segment.py @@ -114,7 +114,7 @@ def process_segment_lister(pl, segment_info, parsed_segments, side, mode, colors if subsegment_update: subsegment = subsegment.copy() subsegment.update(subsegment_update) - if subsegment_update['priority_multiplier'] and subsegment['priority']: + if 'priority_multiplier' in subsegment_update and subsegment['priority']: subsegment['priority'] *= subsegment_update['priority_multiplier'] process_segment(