mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
Fix entries getting removed when their type changes on refresh
Somewhat surprised nobody reported this one yet, it is rather weird and obviously buggy behavior. A second refresh would fix it again, but still.
This commit is contained in:
parent
2f97601736
commit
c41467f240
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ const ScanDir = struct {
|
|||
if (self.entries.count() > 0) {
|
||||
var it = &self.dir.sub;
|
||||
while (it.*) |e| {
|
||||
if (self.entries.contains(e)) {
|
||||
if (self.entries.getKey(e) == e) {
|
||||
e.delStatsRec(self.dir);
|
||||
it.* = e.next;
|
||||
} else
|
||||
|
|
|
|||
Loading…
Reference in a new issue