-
-
Notifications
You must be signed in to change notification settings - Fork 275
Closed
Description
The new ini check will incorrectly blank out env
if there is no prompt
value in the ini file.
powerline-go/segment-virtualenv.go
Line 19 in fe0a2a4
env = cfg.Section("").Key("prompt").String() |
I'm not that familiar with golang, perhaps assigning the output of the ini lookup to a temporary value and checking it's not empty before overwriting env
would suitably resolve this issue?
new_env = cfg.Section("").Key("prompt").String()
if new_env != "" {
env = new_env
}
Metadata
Metadata
Assignees
Labels
No labels