diff --git a/pkg/gui/context.go b/pkg/gui/context.go index d5a7f35a2..7d3b32a1d 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -95,7 +95,7 @@ func (self *ContextMgr) pushToContextStack(c types.Context) ([]types.Context, ty defer self.Unlock() if len(self.ContextStack) > 0 && - c == self.ContextStack[len(self.ContextStack)-1] { + c.GetKey() == self.ContextStack[len(self.ContextStack)-1].GetKey() { // Context being pushed is already on top of the stack: nothing to // deactivate or activate return contextsToDeactivate, nil