From b6ec667de0f176922595931cdb33706da5f37c57 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 6 Apr 2021 09:50:14 +1000 Subject: [PATCH] add comment --- pkg/gui/context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 615fcecca..60f834835 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -506,6 +506,7 @@ func (gui *Gui) activateContext(c Context) error { viewName := c.GetViewName() v, err := gui.g.View(viewName) // if view no longer exists, pop again + // (note: this should never happen, unless we call this code before our views are initialised) if err != nil { return gui.returnFromContext() }