correct message for folders that lf has no permission for (#203)

This commit is contained in:
Juris Arturs Majors authored and gokcehan committed 2019-07-20 15:44:20 +03:00
1 parent cb36e87b80
commit 27861f06e2
2 files changed
+7

No files matched your search

+5
View File
@@ -251,6 +251,11 @@ func (win *win) printDir(dir *dir, selections map[string]int, saves map[string]b
return
}
if dir.noPerm {
win.print(2, 0, termbox.AttrReverse, termbox.ColorDefault, "permission denied")
return
}
if len(dir.files) == 0 {
win.print(2, 0, termbox.AttrReverse, termbox.ColorDefault, "empty")
return