1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-22 02:40:15 -04:00

handling of empty dirs

This commit is contained in:
nova
2025-08-24 19:45:08 +02:00
parent ba1e95bca3
commit 4a9c38d034
5 changed files with 65 additions and 40 deletions

View File

@@ -97,6 +97,8 @@ void window_rgt(WINDOW *win){
if (rgt_file_count == 0) {
if (rgt_content[0].file_type == FILE_TYPE_OPEN_FILE) {
mvwaddnstr(win, 0, 0, rgt_buffer, (terminal_width/2) * terminal_width);
} else if (rgt_content->permissions & S_IRUSR) {
mvwaddstr(win, 0, 0, "not accessible");
} else {
mvwaddstr(win, 0, 0, "empty");
}