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,7 +68,8 @@ class Renderer(object):
|
|||||||
|
|
||||||
def get_segment_info(self, segment_info):
|
def get_segment_info(self, segment_info):
|
||||||
r = self.segment_info.copy()
|
r = self.segment_info.copy()
|
||||||
r.update(segment_info)
|
if segment_info:
|
||||||
|
r.update(segment_info)
|
||||||
if 'PWD' in r['environ']:
|
if 'PWD' in r['environ']:
|
||||||
r['getcwd'] = lambda: r['environ']['PWD']
|
r['getcwd'] = lambda: r['environ']['PWD']
|
||||||
return r
|
return r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user