From 62a9727ab52e196c1ab1f62d323554e75f4f1108 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Wed, 18 Jun 2025 09:49:04 +0200 Subject: [PATCH] lib/transform: avoid empty charmap entry --- lib/transform/cmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transform/cmap.go b/lib/transform/cmap.go index 8fac5da63..b5341c63e 100644 --- a/lib/transform/cmap.go +++ b/lib/transform/cmap.go @@ -20,7 +20,7 @@ type CharmapChoices = fs.Enum[cmapChoices] type cmapChoices struct{} func (cmapChoices) Choices() []string { - choices := make([]string, 1) + choices := []string{} i := 0 for _, enc := range charmap.All { c, ok := enc.(*charmap.Charmap)