Skip to content

Commit aa0b96a

Browse files
committed
Fix sorting options
1 parent 1dc6669 commit aa0b96a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ func showPreviewWindow(filePath string, fyneApp fyne.App) {
9898
lang.X("app.separator.tab", "Tab"): '\t',
9999
}
100100
separatorOptions := make([]string, len(typeToCharMap))
101-
sort.Slice(separatorOptions, func(i, j int) bool {
102-
return separatorOptions[i] < separatorOptions[j]
103-
})
104101
i := 0
105102
for key := range typeToCharMap {
106103
separatorOptions[i] = key
107104
i++
108105
}
106+
sort.Slice(separatorOptions, func(i, j int) bool {
107+
return separatorOptions[i] < separatorOptions[j]
108+
})
109109

110110
file, err := os.Open(filePath)
111111
if err != nil {

0 commit comments

Comments
 (0)