diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 66d0e5f25..bb1174991 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -51,7 +51,7 @@ func (self *ContextMgr) Replace(c types.Context) error { self.ContextStack = append(self.ContextStack[0:len(self.ContextStack)-1], c) } - defer self.Unlock() + self.Unlock() return self.Activate(c, types.OnFocusOpts{}) }