diff options
| author | Lucas Burns <44355502+lmburns@users.noreply.github.com> | 2022-03-13 14:53:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-13 19:53:49 +0000 |
| commit | 7f587418daf8e7ddc5e32f06f85e9724c2ecf355 (patch) | |
| tree | 0b99cff50d1507a90409e2efe536da0bed8af1e4 /src/command/history.rs | |
| parent | Update fish bindings. (#265) (diff) | |
| download | atuin-7f587418daf8e7ddc5e32f06f85e9724c2ecf355.zip | |
Fix `history list --cwd` errors (#278)
Diffstat (limited to '')
| -rw-r--r-- | src/command/history.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/history.rs b/src/command/history.rs index a74b210b..37b4b9dd 100644 --- a/src/command/history.rs +++ b/src/command/history.rs @@ -174,7 +174,7 @@ impl Cmd { let history = match (session, cwd) { (None, None) => db.list(None, false).await?, (None, Some(cwd)) => { - let query = format!("select * from history where cwd = {};", cwd); + let query = format!("select * from history where cwd = '{}';", cwd); db.query_history(&query).await? } (Some(session), None) => { @@ -183,7 +183,7 @@ impl Cmd { } (Some(session), Some(cwd)) => { let query = format!( - "select * from history where cwd = {} and session = {};", + "select * from history where cwd = '{}' and session = {};", cwd, session ); db.query_history(&query).await? |
