summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarim Khaleel <code.karim@gmail.com>2024-05-16 12:52:42 +0300
committerStefan Haller <stefan@haller-berlin.de>2024-05-19 14:07:51 +0200
commit7d787afb2cd8f711b508fb63a7d097bffe9c9cb3 (patch)
tree59287cf9cd5e1bb57b94437fa281453fb57f215d
parentaf842e40d4d11aea8f9534e42d312fff2860c0ba (diff)
Set default value for WindowSize config to pass validation
-rw-r--r--pkg/config/user_config.go1
-rw-r--r--schema/config.json3
2 files changed, 3 insertions, 1 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go
index 7a551bca6..4c0d50e52 100644
--- a/pkg/config/user_config.go
+++ b/pkg/config/user_config.go
@@ -684,6 +684,7 @@ func GetDefaultConfig() *UserConfig {
CommandLogSize: 8,
SplitDiff: "auto",
SkipRewordInEditorWarning: false,
+ WindowSize: "normal",
Border: "rounded",
AnimateExplosion: true,
PortraitMode: "auto",
diff --git a/schema/config.json b/schema/config.json
index 3e8bc7c80..556ce4607 100644
--- a/schema/config.json
+++ b/schema/config.json
@@ -341,7 +341,8 @@
"half",
"full"
],
- "description": "Default size for focused window. Window size can be changed from within Lazygit with '+' and '_' (but this won't change the default).\nOne of: 'normal' (default) | 'half' | 'full'"
+ "description": "Default size for focused window. Window size can be changed from within Lazygit with '+' and '_' (but this won't change the default).\nOne of: 'normal' (default) | 'half' | 'full'",
+ "default": "normal"
},
"border": {
"type": "string",