aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
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<BString>,
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());