From f87cb13a99fa041c3065a74ea1eab4c0a963cd7d Mon Sep 17 00:00:00 2001 From: Jonas Maier <> Date: Sat, 7 Mar 2026 12:19:40 +0100 Subject: correct display of path if in root --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') 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) -- cgit v1.2.3