We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7238cc7 commit f26f221Copy full SHA for f26f221
1 file changed
pkg/importer/importer.go
@@ -6,6 +6,7 @@ import (
6
"fmt"
7
"log/slog"
8
"sort"
9
+ "strings"
10
11
"github.com/xinnjie/onekeymap-cli/internal/dedup"
12
"github.com/xinnjie/onekeymap-cli/pkg/api/importerapi" // Only for ValidationReport
@@ -265,9 +266,11 @@ func pairKey(action keymap.Action) string {
265
266
}
267
// Join with NUL to avoid ambiguity
268
sig := action.Name + "\x00"
269
+ var sigSb268 strings.Builder
270
for _, p := range parts {
- sig += p + "\x00"
271
+ sigSb268.WriteString(p + "\x00")
272
273
+ sig += sigSb268.String()
274
return sig
275
276
0 commit comments