diff options
| author | Jonas Maier <> | 2026-03-07 12:19:40 +0100 |
|---|---|---|
| committer | Jonas Maier <> | 2026-03-07 12:19:40 +0100 |
| commit | f87cb13a99fa041c3065a74ea1eab4c0a963cd7d (patch) | |
| tree | f92374f5ef08bc5e4c0d0029145bbc905a8f7d2c | |
| parent | 54a02770856320cf6dea1e68efe42e2691fe5b7b (diff) | |
| download | pish-f87cb13a99fa041c3065a74ea1eab4c0a963cd7d.tar.gz | |
correct display of path if in root
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 9fc903f..efcbd3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,7 +94,7 @@ impl Session { } else { dir.to_string_lossy().to_string() }; - while s.ends_with("/") { + while s.ends_with("/") && s.len() > 1 { s.remove(s.len() - 1); } Ok(s) |
