diff options
| author | Jeff Gould <JRGould@gmail.com> | 2024-07-17 07:22:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-17 15:22:53 +0100 |
| commit | 62f3807dcb4844f74b59c7bcfb81c9a914da7353 (patch) | |
| tree | 192659ea7569d1166905caa5e29d5e7e8330929d | |
| parent | feat(tui): Fixed preview height option (#2286) (diff) | |
| download | atuin-62f3807dcb4844f74b59c7bcfb81c9a914da7353.zip | |
fix(history): logic for store_failed=false (#2284)
* chore: ignore .envrc
* fix(history): Check passed exit param instead of not-yet set h.exit
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | crates/atuin/src/command/client/history.rs | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -6,6 +6,7 @@ .vscode/ result publish.sh +.envrc ui/backend/target ui/backend/gen diff --git a/crates/atuin/src/command/client/history.rs b/crates/atuin/src/command/client/history.rs index a9970559..17b400f3 100644 --- a/crates/atuin/src/command/client/history.rs +++ b/crates/atuin/src/command/client/history.rs @@ -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 |
