mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Go the correct directory after a deletion
This commit is contained in:
parent
bb8c2e66e7
commit
44f64cf3d3
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue