fix mark all resulting empty directory

This commit is contained in:
Night Kaly 2024-04-02 00:26:52 +00:00
parent 60d9928459
commit a1bc4b80a7
Signed by: night0721
GPG key ID: 957D67B8DB7A119B

6
ccc.c
View file

@ -457,8 +457,10 @@ void change_dir(const char *buf, int selection, int ftype)
buf_dup = (char *) buf; buf_dup = (char *) buf;
} }
strcpy(cwd, buf_dup); strcpy(cwd, buf_dup);
arraylist_free(files); if (ftype != 2) {
files = arraylist_init(100); arraylist_free(files);
files = arraylist_init(100);
}
current_selection = selection; current_selection = selection;
populate_files(cwd, ftype); populate_files(cwd, ftype);
} }