mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
Fix minor segment contents override issue
This commit is contained in:
parent
a272d907bc
commit
7750fa296a
@ -66,7 +66,11 @@ class Theme(object):
|
||||
continue
|
||||
|
||||
if segment['type'] == 'function':
|
||||
contents = contents_override.get(segment['key'], segment['contents_func'](**segment['args']))
|
||||
contents = contents_override.get(segment['key'])
|
||||
if contents is None:
|
||||
if contents_override:
|
||||
continue
|
||||
contents = segment['contents_func'](**segment['args'])
|
||||
|
||||
if contents is None:
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user