mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-23 16:54:25 +01:00
fix(history): logic for store_failed=false (#2284)
* chore: ignore .envrc * fix(history): Check passed exit param instead of not-yet set h.exit
This commit is contained in:
parent
06c8ebd310
commit
62f3807dcb
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@
|
||||
.vscode/
|
||||
result
|
||||
publish.sh
|
||||
.envrc
|
||||
|
||||
ui/backend/target
|
||||
ui/backend/gen
|
||||
|
@ -384,7 +384,7 @@ impl Cmd {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if !settings.store_failed && h.exit != 0 {
|
||||
if !settings.store_failed && exit > 0 {
|
||||
debug!("history has non-zero exit code, and store_failed is false");
|
||||
|
||||
// the history has already been inserted half complete. remove it
|
||||
|
Loading…
Reference in New Issue
Block a user