mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fix double-slash prefix in path display when scanning root
This commit is contained in:
parent
929cc75675
commit
8a23525cac
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ pub const Dir = packed struct {
|
|||
|
||||
var i: usize = components.items.len-1;
|
||||
while (true) {
|
||||
if (i != components.items.len-1) out.append('/') catch unreachable;
|
||||
if (i != components.items.len-1 and !(out.items.len != 0 and out.items[out.items.len-1] == '/')) out.append('/') catch unreachable;
|
||||
out.appendSlice(components.items[i]) catch unreachable;
|
||||
if (i == 0) break;
|
||||
i -= 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue