Make file content clear when meet a dir
This commit is contained in:
parent
ec474c4704
commit
3e95b7ab9c
1 changed files with 2 additions and 1 deletions
3
ccc.c
3
ccc.c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue