fix mark all resulting empty directory
This commit is contained in:
parent
60d9928459
commit
a1bc4b80a7
1 changed files with 4 additions and 2 deletions
6
ccc.c
6
ccc.c
|
@ -457,8 +457,10 @@ void change_dir(const char *buf, int selection, int ftype)
|
|||
buf_dup = (char *) buf;
|
||||
}
|
||||
strcpy(cwd, buf_dup);
|
||||
arraylist_free(files);
|
||||
files = arraylist_init(100);
|
||||
if (ftype != 2) {
|
||||
arraylist_free(files);
|
||||
files = arraylist_init(100);
|
||||
}
|
||||
current_selection = selection;
|
||||
populate_files(cwd, ftype);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue