Skip to content

Commit b57e271

Browse files
committed
fix: no page size limit
1 parent 704b8eb commit b57e271

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/codegen/extensions/tools/search.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
import logging
9+
import math
910
import os
1011
import re
1112
import subprocess
@@ -336,6 +337,8 @@ def _search_with_python(
336337

337338
# Calculate pagination
338339
total_files = len(all_results)
340+
if files_per_page == math.inf:
341+
files_per_page = total_files
339342
total_pages = (total_files + files_per_page - 1) // files_per_page
340343
start_idx = (page - 1) * files_per_page
341344
end_idx = start_idx + files_per_page

0 commit comments

Comments
 (0)