Missed a call to process().

This commit is contained in:
Oliver 2022-12-17 15:00:28 +01:00
parent bb3fea967d
commit 5bc948d2ca
1 changed files with 3 additions and 0 deletions

View File

@ -374,6 +374,8 @@ func (t *TreeView) SetTopLevel(topLevel int) *TreeView {
//
// treeView.SetGraphics(false).
// SetPrefixes([]string{"* ", "- ", "x "})
//
// Deeper levels will cycle through the prefixes.
func (t *TreeView) SetPrefixes(prefixes []string) *TreeView {
t.prefixes = prefixes
return t
@ -449,6 +451,7 @@ func (t *TreeView) Move(offset int) *TreeView {
}
t.movement = treeMove
t.step = offset
t.process(false)
return t
}