mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-16 18:48:41 -09:00
Fixed display bug on deletion error
This commit is contained in:
parent
2a5c9a242f
commit
eb3310060f
1 changed files with 5 additions and 3 deletions
|
|
@ -194,12 +194,14 @@ delete_nxt:
|
||||||
if(r == -1 && !ignoreerr) {
|
if(r == -1 && !ignoreerr) {
|
||||||
state = DS_FAILED;
|
state = DS_FAILED;
|
||||||
lasterrno = errno;
|
lasterrno = errno;
|
||||||
|
curdir = dr;
|
||||||
while(state == DS_FAILED)
|
while(state == DS_FAILED)
|
||||||
if(input_handle(0))
|
if(input_handle(0))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
} else
|
||||||
|
freedir(dr);
|
||||||
freedir(dr);
|
if(r == -1 && root == dr)
|
||||||
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue