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

2
ccc.c
View file

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