diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/vcomponent/search.scm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/module/vcomponent/search.scm b/module/vcomponent/search.scm index 708f0895..6e7292c2 100644 --- a/module/vcomponent/search.scm +++ b/module/vcomponent/search.scm @@ -59,9 +59,11 @@ (loop (stream-cdr strm))))) (lambda _ (format (current-error-port) "~a~%" 'timed-out))) (let ((list (reverse lst))) - (set-box! (stream-ref query page) - (list->stream list)) - list))) + (if (null? list) + list + (set-box! (stream-ref query page) + (list->stream list)) + list)))) ;; Creates a prepared query wrappend in a paginator. |