parent
a127408e93
commit
f55d5cf0bf
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ impl Cmd {
|
||||||
match self {
|
match self {
|
||||||
Self::Start { command: words } => {
|
Self::Start { command: words } => {
|
||||||
let command = words.join(" ");
|
let command = words.join(" ");
|
||||||
|
|
||||||
|
if command.starts_with(' ') {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
let cwd = env::current_dir()?.display().to_string();
|
let cwd = env::current_dir()?.display().to_string();
|
||||||
|
|
||||||
let h = History::new(chrono::Utc::now(), command, cwd, -1, -1, None, None);
|
let h = History::new(chrono::Utc::now(), command, cwd, -1, -1, None, None);
|
||||||
|
|
Loading…
Reference in a new issue