feat: added way to change path history for some tricks.

This commit is contained in:
Andrey Parhomenko 2024-07-24 08:50:45 +05:00
parent 7a9a8be397
commit 7f23e5a13e

View file

@ -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 {