From 0b76beaff4fa68686ac20725be23d8216858a97a Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 4 Nov 2024 14:44:56 +0100 Subject: [PATCH] fix(image): initialize image correctly --- src/cli/config_export_image.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli/config_export_image.go b/src/cli/config_export_image.go index 3df8179e..285e74fe 100644 --- a/src/cli/config_export_image.go +++ b/src/cli/config_export_image.go @@ -60,6 +60,9 @@ Exports the config to an image file using customized output options.`, env.Init() defer env.Close() + + template.Init(env) + cfg := config.Load(env) // set sane defaults for things we don't print @@ -73,8 +76,6 @@ Exports the config to an image file using customized output options.`, terminal.BackgroundColor = cfg.TerminalBackground.ResolveTemplate() terminal.Colors = cfg.MakeColors() - template.Init(env) - eng := &prompt.Engine{ Config: cfg, Env: env,