aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/history.rs
diff options
context:
space:
mode:
authorLucas Burns <44355502+lmburns@users.noreply.github.com>2022-03-13 14:53:49 -0500
committerGitHub <noreply@github.com>2022-03-13 19:53:49 +0000
commit7f587418daf8e7ddc5e32f06f85e9724c2ecf355 (patch)
tree0b99cff50d1507a90409e2efe536da0bed8af1e4 /src/command/history.rs
parentUpdate fish bindings. (#265) (diff)
downloadatuin-7f587418daf8e7ddc5e32f06f85e9724c2ecf355.zip
Fix `history list --cwd` errors (#278)
Diffstat (limited to 'src/command/history.rs')
-rw-r--r--src/command/history.rs4
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?