summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-11-01 09:35:54 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-11-01 10:03:49 +1100
commit2fc1498517523a20a3080816ec50ee9e7fbe533d (patch)
tree808b455c38c2e96f3d3930fa49f3f605416e5f24 /pkg/gui/context.go
parent7a464ae5b7782b383050de6dc3ae5bd51a88bad0 (diff)
some refactoring in anticipation of the graph feature
Diffstat (limited to 'pkg/gui/context.go')
-rw-r--r--pkg/gui/context.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go
index a74b12749..79db5dc26 100644
--- a/pkg/gui/context.go
+++ b/pkg/gui/context.go
@@ -285,9 +285,9 @@ func (gui *Gui) currentContextWithoutLock() Context {
// the status panel is not yet a list context (and may never be), so this method is not
// quite the same as currentSideContext()
-func (gui *Gui) currentSideListContext() *ListContext {
+func (gui *Gui) currentSideListContext() IListContext {
context := gui.currentSideContext()
- listContext, ok := context.(*ListContext)
+ listContext, ok := context.(IListContext)
if !ok {
return nil
}