Minor fix

pull/696/head
Arijit Basu 4 months ago
parent b0ef9a5190
commit 16673963aa
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

@ -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,

Loading…
Cancel
Save