mirror of
https://github.com/powerline/powerline.git
synced 2025-07-25 23:05:32 +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
|
continue
|
||||||
|
|
||||||
if segment['type'] == 'function':
|
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:
|
if contents is None:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user