File tree Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ type CommitFilesContext struct {
1818}
1919
2020var (
21- _ types.IListContext = (* CommitFilesContext )(nil )
22- _ types.DiffableContext = (* CommitFilesContext )(nil )
21+ _ types.IListContext = (* CommitFilesContext )(nil )
22+ _ types.DiffableContext = (* CommitFilesContext )(nil )
23+ _ types.ISearchableContext = (* CommitFilesContext )(nil )
2324)
2425
2526func NewCommitFilesContext (c * ContextCommon ) * CommitFilesContext {
Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ type LocalCommitsContext struct {
1818}
1919
2020var (
21- _ types.IListContext = (* LocalCommitsContext )(nil )
22- _ types.DiffableContext = (* LocalCommitsContext )(nil )
21+ _ types.IListContext = (* LocalCommitsContext )(nil )
22+ _ types.DiffableContext = (* LocalCommitsContext )(nil )
23+ _ types.ISearchableContext = (* LocalCommitsContext )(nil )
2324)
2425
2526func NewLocalCommitsContext (c * ContextCommon ) * LocalCommitsContext {
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ type PatchExplorerContext struct {
1818 mutex * deadlock.Mutex
1919}
2020
21- var _ types.IPatchExplorerContext = (* PatchExplorerContext )(nil )
21+ var (
22+ _ types.IPatchExplorerContext = (* PatchExplorerContext )(nil )
23+ _ types.ISearchableContext = (* PatchExplorerContext )(nil )
24+ )
2225
2326func NewPatchExplorerContext (
2427 view * gocui.View ,
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ type SubCommitsContext struct {
2121}
2222
2323var (
24- _ types.IListContext = (* SubCommitsContext )(nil )
25- _ types.DiffableContext = (* SubCommitsContext )(nil )
24+ _ types.IListContext = (* SubCommitsContext )(nil )
25+ _ types.DiffableContext = (* SubCommitsContext )(nil )
26+ _ types.ISearchableContext = (* SubCommitsContext )(nil )
2627)
2728
2829func NewSubCommitsContext (
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ type WorkingTreeContext struct {
1515 * SearchTrait
1616}
1717
18- var _ types.IListContext = (* WorkingTreeContext )(nil )
18+ var (
19+ _ types.IListContext = (* WorkingTreeContext )(nil )
20+ _ types.ISearchableContext = (* WorkingTreeContext )(nil )
21+ )
1922
2023func NewWorkingTreeContext (c * ContextCommon ) * WorkingTreeContext {
2124 viewModel := filetree .NewFileTreeViewModel (
You can’t perform that action at this time.
0 commit comments