Skip to content
Snippets Groups Projects
Commit 44f64cf3 authored by Yorhel's avatar Yorhel
Browse files

Go the correct directory after a deletion

parent bb8c2e66
No related branches found
No related tags found
No related merge requests found
......@@ -229,13 +229,15 @@ int delete_dir(struct dir *dr) {
void delete_process() {
struct dir *n = root->parent;
struct dir *n;
/* confirm */
seloption = 1;
while(state == DS_CONFIRM && !noconfirm)
if(input_handle(0))
return browse_init(root);
n = root->parent->sub != root ? root->parent->sub : root->next ? root->next : root->parent;
/* delete */
lastupdate = 999;
seloption = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment