mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-30 12:32:22 -08:00
parent
f2ee958ec1
commit
7b5572e73c
|
@ -266,6 +266,9 @@ func (segment *Segment) mapSegmentWithWriter(env environmentInfo) error {
|
||||||
WiFi: &wifi{},
|
WiFi: &wifi{},
|
||||||
WinReg: &winreg{},
|
WinReg: &winreg{},
|
||||||
}
|
}
|
||||||
|
if segment.Properties == nil {
|
||||||
|
segment.Properties = make(properties)
|
||||||
|
}
|
||||||
if writer, ok := functions[segment.Type]; ok {
|
if writer, ok := functions[segment.Type]; ok {
|
||||||
writer.init(segment.Properties, env)
|
writer.init(segment.Properties, env)
|
||||||
segment.writer = writer
|
segment.writer = writer
|
||||||
|
|
Loading…
Reference in a new issue