.Mismatch confusion in Node segment
#3994
Answered
by
JanDeDobbeleer
lucascosti
asked this question in
Troubleshoot
|
Not sure if this is a bug, hence a discussion instead of an issue. 🙂 The If However, according the docs, as well the current behavior, For example, here is what I currently have to do to show the segment only when there is a mismatch of the versions: {
"type": "node",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#6CA35E",
"template": "{{ if not .Mismatch }}{{ .Major }} != {{ .Expected }} {{ end }}"
}, |
Answered by
JanDeDobbeleer
Jun 26, 2023
Replies: 1 comment 2 replies
|
@lucascosti fair remark. I think this is because of a refactor. I'll adjust as it's completely counterintuitive. |
2 replies
Answer selected by
lucascosti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lucascosti fair remark. I think this is because of a refactor. I'll adjust as it's completely counterintuitive.