mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-14 12:48:04 -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 {
|
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() {
|
func (n *Node) loadContext() {
|
||||||
|
|
Loading…
Reference in a new issue