Compare commits

..

No commits in common. "feature" and "master" have entirely different histories.

3
ccc.c
View file

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