Make file content clear when meet a dir

This commit is contained in:
Night Kaly 2024-10-11 19:42:00 +01:00
parent ec474c4704
commit 3e95b7ab9c
Signed by: night0721
GPG key ID: 957D67B8DB7A119B

3
ccc.c
View file

@ -837,10 +837,11 @@ void show_file_content()
{
file current_file = files->items[current_selection];
wclear(preview_content);
if (strncmp(current_file.type, "DIR", 3) == 0)
/* Print dir content */
return;
wclear(preview_content);
FILE *file = fopen(current_file.path, "r");
if (file == NULL) {