diff --git a/termmeta.go b/termmeta.go index 9218106..0e85527 100644 --- a/termmeta.go +++ b/termmeta.go @@ -96,7 +96,6 @@ func (index *termMetaDb) output(dir string, pretty bool) error { } var entries [][]string - var entryCount = len(entries) for _, e := range index.entries { entries = append( entries, @@ -108,6 +107,8 @@ func (index *termMetaDb) output(dir string, pretty bool) error { ) } + entryCount := len(entries) + for i := 0; i < entryCount; i += BANK_STRIDE { indexSrc := i indexDst := i + BANK_STRIDE