summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/patch_explorer_context.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-06-07 14:48:47 +0200
committerStefan Haller <stefan@haller-berlin.de>2024-06-23 11:43:12 +0200
commit44ad36bb393585235042493f75b6c68d7d51732f (patch)
treecca212fe1862493e854ac854a4a9e77e61866224 /pkg/gui/context/patch_explorer_context.go
parent08a8b067a5f1470d0b304d5a5884c47c76dbe8ed (diff)
Add type assertions for all searchable contexts
We want to add an additional method to ISearchableContext later in this branch, and this will make sure that we don't forget to implement it in any concrete context.
Diffstat (limited to 'pkg/gui/context/patch_explorer_context.go')
-rw-r--r--pkg/gui/context/patch_explorer_context.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/gui/context/patch_explorer_context.go b/pkg/gui/context/patch_explorer_context.go
index 34f70e2c7..dac66fa03 100644
--- a/pkg/gui/context/patch_explorer_context.go
+++ b/pkg/gui/context/patch_explorer_context.go
@@ -18,7 +18,10 @@ type PatchExplorerContext struct {
mutex *deadlock.Mutex
}
-var _ types.IPatchExplorerContext = (*PatchExplorerContext)(nil)
+var (
+ _ types.IPatchExplorerContext = (*PatchExplorerContext)(nil)
+ _ types.ISearchableContext = (*PatchExplorerContext)(nil)
+)
func NewPatchExplorerContext(
view *gocui.View,