mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
fix: set .Mismatch flag for node segment
This commit is contained in:
parent
cc20e4dd4c
commit
be60b64585
|
@ -45,7 +45,12 @@ func (n *Node) Init(props properties.Properties, env environment.Environment) {
|
|||
}
|
||||
|
||||
func (n *Node) Enabled() bool {
|
||||
return n.language.Enabled()
|
||||
if n.language.Enabled() {
|
||||
n.Mismatch = !n.matchesVersionFile()
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
func (n *Node) loadContext() {
|
||||
|
|
Loading…
Reference in a new issue