mirror of
https://github.com/sayanarijit/xplr.git
synced 2024-10-26 10:56:25 +03:00
Minor fix
This commit is contained in:
parent
cc578aaf0a
commit
3a9739da32
10
src/app.rs
10
src/app.rs
@ -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…
Reference in New Issue
Block a user