aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--module/vcomponent/search.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/vcomponent/search.scm b/module/vcomponent/search.scm
index fab53f79..a5e8c4ce 100644
--- a/module/vcomponent/search.scm
+++ b/module/vcomponent/search.scm
@@ -145,6 +145,10 @@
'())
(let ((result (stream->list
(stream-ref (get-query paginator) page))))
+ ;; This check isn't strictly necessary, but without it
+ ;; we always needs to force the next page. And since this
+ ;; page is "incomplete" we already know that this is the
+ ;; final page.
(when (> 10 (length result))
(set-true-max-page! paginator))