Minor fix

This commit is contained in:
Arijit Basu 2024-01-03 17:29:34 +05:30
parent cc578aaf0a
commit 3a9739da32
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

View File

@ -414,13 +414,19 @@ impl App {
prompt: config.general.prompt.format.clone().unwrap_or_default(),
};
let hist = if &pwd == "/" {
pwd.clone()
} else {
format!("{0}/", &pwd)
};
let mut app = Self {
bin,
version: VERSION.to_string(),
config,
vroot,
initial_vroot,
pwd: pwd.clone(),
pwd,
initial_pwd,
directory_buffer: Default::default(),
last_focus: Default::default(),
@ -435,7 +441,7 @@ impl App {
explorer_config,
logs: Default::default(),
logs_hidden: Default::default(),
history: History::default().push(format!("{pwd}/")),
history: History::default().push(hist),
last_modes: Default::default(),
hostname,
hooks,