summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.c b/search.c
index 3026a3b..1cfc0f1 100644
--- a/search.c
+++ b/search.c
@@ -41,7 +41,7 @@ const char *SearchQuery = SQL(
 		AND coalesce(contexts.name = :context, true)
 		AND contexts.query <= NOT :public
 		AND search MATCH :query
-	LIMIT :limit, :offset;
+	LIMIT :offset, :limit;
 );
 
 enum kcgi_err pageSearch(struct kreq *req) {
@@ -67,7 +67,7 @@ enum kcgi_err pageSearch(struct kreq *req) {
 	sqlite3_reset(stmt.search);
 	dbBindText(stmt.search, ":network", scope.network);
 	dbBindText(stmt.search, ":context", scope.context);
-	dbBindText(stmt.search, ":search", scope.query);
+	dbBindText(stmt.search, ":query", scope.query);
 	dbBindInt(stmt.search, ":public", pagePublic);
 	dbBindInt(stmt.search, ":limit", pageLimit);
 	dbBindInt(stmt.search, ":offset", offset);
n title='2021-09-08 23:32:51 -0400'>2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe