From b19d0ea31817928655f84addb933cf4ba3187cb8 Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Fri, 6 Mar 2026 13:03:26 +0100 Subject: support `cd -` --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 19e7743..c4113f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,6 +55,7 @@ pub struct Session { line: LineBuf, history: Vec, dispatch: CommandDispatch, + prev_path: BString, } /// relative path -- in case it is a proper subpath the result starts with a slash `/` @@ -138,6 +139,7 @@ fn event_loop() { line: LineBuf::new(), history: Vec::new(), dispatch: CommandDispatch::new(), + prev_path: vec![b'.'], }; print!("{}", se.prompt()); -- cgit v1.2.3