We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 704b8eb commit b57e271Copy full SHA for b57e271
1 file changed
src/codegen/extensions/tools/search.py
@@ -6,6 +6,7 @@
6
"""
7
8
import logging
9
+import math
10
import os
11
import re
12
import subprocess
@@ -336,6 +337,8 @@ def _search_with_python(
336
337
338
# Calculate pagination
339
total_files = len(all_results)
340
+ if files_per_page == math.inf:
341
+ files_per_page = total_files
342
total_pages = (total_files + files_per_page - 1) // files_per_page
343
start_idx = (page - 1) * files_per_page
344
end_idx = start_idx + files_per_page
0 commit comments