diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-10 13:42:20 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-10 13:42:20 +0200 |
commit | 2f04fc5193c75421809c657dd2fb66a3f907c154 (patch) | |
tree | 168da75c6d2757a279dfbbe977c54a88142a4941 | |
parent | Merge branch 'smalltime' into master (diff) | |
download | calp-2f04fc5193c75421809c657dd2fb66a3f907c154.tar.gz calp-2f04fc5193c75421809c657dd2fb66a3f907c154.tar.xz |
Add comment about final page.
Diffstat (limited to '')
-rw-r--r-- | module/vcomponent/search.scm | 4 |
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)) |