mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 08:14:41 +02:00
Update only if segment_info is not None
This commit is contained in:
parent
878255aff0
commit
e599691c52
@ -68,6 +68,7 @@ class Renderer(object):
|
||||
|
||||
def get_segment_info(self, segment_info):
|
||||
r = self.segment_info.copy()
|
||||
if segment_info:
|
||||
r.update(segment_info)
|
||||
if 'PWD' in r['environ']:
|
||||
r['getcwd'] = lambda: r['environ']['PWD']
|
||||
|
Loading…
x
Reference in New Issue
Block a user