about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-21 16:52:58 -0400
committerJune McEnroe <june@causal.agency>2020-05-21 16:52:58 -0400
commit80dd4af7bdd224679b3c2c17328f6498cd4a15d1 (patch)
tree36e909fd4b80c70ee1c63835768f62100620b282
parentFix dbPrepare errx call (diff)
downloadlitterbox-80dd4af7bdd224679b3c2c17328f6498cd4a15d1.tar.gz
litterbox-80dd4af7bdd224679b3c2c17328f6498cd4a15d1.zip
Fix search expression append
Oops.
-rw-r--r--scoop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scoop.c b/scoop.c
index e22a08e..59adaff 100644
--- a/scoop.c
+++ b/scoop.c
@@ -470,7 +470,7 @@ int main(int argc, char *argv[]) {
 		}
 	}
 	if (optind < argc) {
-		queryAdd(SQL(search MATCH :search));
+		queryAdd(SQL(AND search MATCH :search));
 		binds[n++] = Bind(":search", argv[optind], 0);
 	}
 	if (limit) {