From 8b76e52e6fc0efab7eab5b4c725e6c8307a95086 Mon Sep 17 00:00:00 2001 From: surdeus Date: Tue, 23 Jul 2024 17:47:24 +0500 Subject: [PATCH] fix: fixed the return value for GoRet. --- context.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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