From 5bc948d2ca5cb749842427986f93926353f832b6 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Sat, 17 Dec 2022 15:00:28 +0100 Subject: [PATCH] Missed a call to process(). --- treeview.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/treeview.go b/treeview.go index 6467440..c6cbc35 100644 --- a/treeview.go +++ b/treeview.go @@ -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 }