aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-10 13:42:20 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-10 13:42:20 +0200
commit2f04fc5193c75421809c657dd2fb66a3f907c154 (patch)
tree168da75c6d2757a279dfbbe977c54a88142a4941
parentMerge branch 'smalltime' into master (diff)
downloadcalp-2f04fc5193c75421809c657dd2fb66a3f907c154.tar.gz
calp-2f04fc5193c75421809c657dd2fb66a3f907c154.tar.xz
Add comment about final page.
-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))