diff --git a/context.go b/context.go index 39af4d9..cdf42f1 100644 --- a/context.go +++ b/context.go @@ -298,11 +298,11 @@ func (c Context) RunWidget(widget Widget) (*UpdateChan, error) { return ret, nil } -func (c Context) GoRet(pth Widget) WidgetGo { - return WidgetGo{ +func (c Context) GoRet(pth Widget) UI { + return UI{WidgetGo{ Path: pth, Arg: c.Arg(), - } + }} } // Go to the specified widget