diff options
Diffstat (limited to 'src/main.rs')
| -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) |
