File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -60,19 +60,18 @@ func (self *SwitchToFocusedMainViewController) Context() types.Context {
60
60
}
61
61
62
62
func (self * SwitchToFocusedMainViewController ) onClickMain (opts gocui.ViewMouseBindingOpts ) error {
63
- return self .focusMainView ("main" )
63
+ return self .focusMainView (self . c . Contexts (). Normal )
64
64
}
65
65
66
66
func (self * SwitchToFocusedMainViewController ) onClickSecondary (opts gocui.ViewMouseBindingOpts ) error {
67
- return self .focusMainView ("secondary" )
67
+ return self .focusMainView (self . c . Contexts (). NormalSecondary )
68
68
}
69
69
70
70
func (self * SwitchToFocusedMainViewController ) handleFocusMainView () error {
71
- return self .focusMainView ("main" )
71
+ return self .focusMainView (self . c . Contexts (). Normal )
72
72
}
73
73
74
- func (self * SwitchToFocusedMainViewController ) focusMainView (mainViewName string ) error {
75
- mainViewContext := self .c .Helpers ().Window .GetContextForWindow (mainViewName )
74
+ func (self * SwitchToFocusedMainViewController ) focusMainView (mainViewContext types.Context ) error {
76
75
mainViewContext .SetParentContext (self .context )
77
76
if context , ok := mainViewContext .(types.ISearchableContext ); ok {
78
77
context .ClearSearchString ()
You can’t perform that action at this time.
0 commit comments