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 {