aboutsummaryrefslogtreecommitdiffstats
path: root/app/dirtree.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/dirtree.go')
-rw-r--r--app/dirtree.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/dirtree.go b/app/dirtree.go
index dc80fa7f..64e90193 100644
--- a/app/dirtree.go
+++ b/app/dirtree.go
@@ -99,7 +99,7 @@ func (dt *DirectoryTree) Draw(ctx *ui.Context) {
n := dt.countVisible(dt.list)
if n == 0 || dt.listIdx < 0 {
style := uiConfig.GetStyle(config.STYLE_DIRLIST_DEFAULT)
- ctx.Printf(0, 0, style, uiConfig.EmptyDirlist)
+ ctx.Printf(0, 0, style, "%s", uiConfig.EmptyDirlist)
return
}
@@ -178,7 +178,7 @@ func (dt *DirectoryTree) MouseEvent(localX int, localY int, event vaxis.Event) {
}
func (dt *DirectoryTree) Clicked(x int, y int) (string, bool) {
- if dt.list == nil || len(dt.list) == 0 || dt.countVisible(dt.list) < y+dt.Scroll() {
+ if len(dt.list) == 0 || dt.countVisible(dt.list) < y+dt.Scroll() {
return "", false
}
visible := 0