aboutsummaryrefslogtreecommitdiffstats
path: root/src/fm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fm.c')
-rw-r--r--src/fm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fm.c b/src/fm.c
index 38d7c83..38ffa9a 100644
--- a/src/fm.c
+++ b/src/fm.c
@@ -291,6 +291,10 @@ fm_draw_entries(window *window, file_list *list, size_t cursor, int top,
wclear(window->win);
+ if (list->count == 0) {
+ mvwprintw(window->win, 0, 0, "Empty");
+ }
+
for (int i = top; i < bottom && (size_t)i < list->count; i++) {
int y = i - top;