feat: added way to change path history for some tricks.
This commit is contained in:
parent
7a9a8be397
commit
7f23e5a13e
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue