diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-23 21:24:57 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-23 21:24:57 +0200 |
commit | 0514edad1a6ee06902841e0c903fc2a2119b7e95 (patch) | |
tree | 104279a8939034ab163cac9bfc124166d001dda7 /termui/bug_table.go | |
parent | e7648996c8f278d061fe03a5c4d255049da765e5 (diff) | |
download | git-bug-0514edad1a6ee06902841e0c903fc2a2119b7e95.tar.gz |
cache: maintain, write and load from disk bug excerpts
Diffstat (limited to 'termui/bug_table.go')
-rw-r--r-- | termui/bug_table.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/termui/bug_table.go b/termui/bug_table.go index 1158f768..6f83a471 100644 --- a/termui/bug_table.go +++ b/termui/bug_table.go @@ -19,14 +19,14 @@ const bugTableInstructionView = "bugTableInstructionView" const remote = "origin" type bugTable struct { - repo cache.RepoCacher + repo *cache.RepoCache allIds []string - bugs []cache.BugCacher + bugs []*cache.BugCache pageCursor int selectCursor int } -func newBugTable(cache cache.RepoCacher) *bugTable { +func newBugTable(cache *cache.RepoCache) *bugTable { return &bugTable{ repo: cache, pageCursor: 0, @@ -230,14 +230,14 @@ func (bt *bugTable) doPaginate(allIds []string, max int) error { nb := minInt(len(allIds)-bt.pageCursor, max) if nb < 0 { - bt.bugs = []cache.BugCacher{} + bt.bugs = []*cache.BugCache{} return nil } // slice the data ids := allIds[bt.pageCursor : bt.pageCursor+nb] - bt.bugs = make([]cache.BugCacher, len(ids)) + bt.bugs = make([]*cache.BugCache, len(ids)) for i, id := range ids { b, err := bt.repo.ResolveBug(id) |