mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-27 20:36:29 -04:00
Fix copy menu panic on entries without notes
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ func CopyMenu(targetLocation string) {
|
||||
4: "Note (first line)",
|
||||
}
|
||||
var fields []string
|
||||
for i, _ := range decSlice[:5] {
|
||||
for i, _ := range decSlice[:min(5, len(decSlice))] {
|
||||
if decSlice[i] != "" {
|
||||
fields = append(fields, fieldIndexToString[i])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user