Merge d9ce6b0d6a6624b044b3f02ab05a010d7c69e400 into 574bb1887b9f27b3c046c6b74a1f3ed75b115a75

This commit is contained in:
Jesse Hitch 2024-09-30 23:31:46 -05:00 committed by GitHub
commit 493f06d339
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,10 @@ def environment(pl, segment_info, variable=None):
:param string variable: :param string variable:
The environment variable to return if found The environment variable to return if found
''' '''
return segment_info['environ'].get(variable, None) return [{
'contents': segment_info['environ'].get(variable, None),
'highlight_groups': ['environment_variable']
}]
@requires_segment_info @requires_segment_info