From 7f23e5a13ed713ef702ad90f08c1460387a48270 Mon Sep 17 00:00:00 2001 From: surdeus Date: Wed, 24 Jul 2024 08:50:45 +0500 Subject: [PATCH] feat: added way to change path history for some tricks. --- context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/context.go b/context.go index 6a8c423..0ededd9 100644 --- a/context.go +++ b/context.go @@ -379,6 +379,10 @@ func (c Context) PathHistory() []Widget { return c.session.pathHistory } +func (c Context) SetPathHistory(hist []Widget) { + c.session.pathHistory = hist +} + func (c Context) Path() Widget { ln := len(c.session.pathHistory) if ln == 0 {