1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Fix boolean config keys not appearing in the generated Config.md

The reason why they didn't appear is that they didn't get a default value in the
generated schema; this commit fixes that.
This commit is contained in:
Stefan Haller
2024-05-31 20:07:58 +02:00
parent 91cb33db85
commit 4bfda1a78c
3 changed files with 88 additions and 18 deletions

View File

@ -78,7 +78,7 @@ func isZeroValue(v any) bool {
case string:
return v == ""
case bool:
return !v
return false
case nil:
return true
}