Skip to content

Commit 0c20f49

Browse files
committed
fixup! Make the main view searchable
1 parent d2ae5b4 commit 0c20f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gui/controllers/switch_to_focused_main_view_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (self *SwitchToFocusedMainViewController) handleFocusMainView() error {
7474
func (self *SwitchToFocusedMainViewController) focusMainView(mainViewName string) error {
7575
mainViewContext := self.c.Helpers().Window.GetContextForWindow(mainViewName)
7676
mainViewContext.SetParentContext(self.context)
77-
if context := mainViewContext.(types.ISearchableContext); context != nil {
77+
if context, ok := mainViewContext.(types.ISearchableContext); ok {
7878
context.ClearSearchString()
7979
}
8080
self.c.Context().Push(mainViewContext, types.OnFocusOpts{})

0 commit comments

Comments
 (0)