mirror of https://github.com/rivo/tview.git
Missed a call to process().
This commit is contained in:
parent
bb3fea967d
commit
5bc948d2ca
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue