aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/search/interactive.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-03-08 23:45:14 +0000
committerGitHub <noreply@github.com>2023-03-08 23:45:14 +0000
commitb91d4f4806a0cf3059db08f6dcfc4c1bb4cf992c (patch)
treefe3ed96922a75a7f811652526b22d9e1396b79c9 /src/command/client/search/interactive.rs
parentMinor documentation updates (#767) (diff)
downloadatuin-b91d4f4806a0cf3059db08f6dcfc4c1bb4cf992c.zip
Fix before/after combined with limit (#770)
* Fix before/after combined with limit Mixing filters done in Rust with filters done in SQL is _no bueno_. Been meaning to do this for a while anyways. Search params are getting a bit fat but oh well! * Make an excuse for a big function sig * Do options map_or not if * Fix tests
Diffstat (limited to 'src/command/client/search/interactive.rs')
-rw-r--r--src/command/client/search/interactive.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/command/client/search/interactive.rs b/src/command/client/search/interactive.rs
index 05ab03e4..4a29ee47 100644
--- a/src/command/client/search/interactive.rs
+++ b/src/command/client/search/interactive.rs
@@ -57,8 +57,16 @@ impl State {
db.list(self.filter_mode, &self.context, Some(200), true)
.await?
} else {
- db.search(Some(200), search_mode, self.filter_mode, &self.context, i)
- .await?
+ db.search(
+ search_mode,
+ self.filter_mode,
+ &self.context,
+ i,
+ Some(200),
+ None,
+ None,
+ )
+ .await?
};
self.results_state.select(0);