We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc6669 commit aa0b96aCopy full SHA for aa0b96a
main.go
@@ -98,14 +98,14 @@ func showPreviewWindow(filePath string, fyneApp fyne.App) {
98
lang.X("app.separator.tab", "Tab"): '\t',
99
}
100
separatorOptions := make([]string, len(typeToCharMap))
101
- sort.Slice(separatorOptions, func(i, j int) bool {
102
- return separatorOptions[i] < separatorOptions[j]
103
- })
104
i := 0
105
for key := range typeToCharMap {
106
separatorOptions[i] = key
107
i++
108
+ sort.Slice(separatorOptions, func(i, j int) bool {
+ return separatorOptions[i] < separatorOptions[j]
+ })
109
110
file, err := os.Open(filePath)
111
if err != nil {
0 commit comments