From 7d787afb2cd8f711b508fb63a7d097bffe9c9cb3 Mon Sep 17 00:00:00 2001 From: Karim Khaleel Date: Thu, 16 May 2024 12:52:42 +0300 Subject: [PATCH] Set default value for WindowSize config to pass validation --- pkg/config/user_config.go | 1 + schema/config.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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",