diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/dirtree.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/dirtree.go b/widgets/dirtree.go index 1b7e2e1f..e5404343 100644 --- a/widgets/dirtree.go +++ b/widgets/dirtree.go @@ -254,7 +254,7 @@ func (dt *DirectoryTree) displayText(node *types.Thread) string { } func (dt *DirectoryTree) getDirectory(node *types.Thread) string { - if uid := node.Uid; uid >= 0 && int(uid) < len(dt.treeDirs) { + if uid := node.Uid; int(uid) < len(dt.treeDirs) { return dt.treeDirs[uid] } return "" |