diff options
Diffstat (limited to 'widgets/dirtree.go')
-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 3e419d47..f475255f 100644 --- a/widgets/dirtree.go +++ b/widgets/dirtree.go @@ -59,7 +59,7 @@ func (dt *DirectoryTree) Draw(ctx *ui.Context) { } n := dt.countVisible(dt.list) - if n == 0 { + if n == 0 || dt.listIdx < 0 { style := dt.UiConfig("").GetStyle(config.STYLE_DIRLIST_DEFAULT) ctx.Printf(0, 0, style, dt.UiConfig("").EmptyDirlist) return |