We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eb2d60 commit f04ab73Copy full SHA for f04ab73
1 file changed
lua/telescope/previewers/utils.lua
@@ -248,6 +248,7 @@ local CHECK_TIME_INTERVAL = 200
248
function utils.timed_split_lines(s, opts)
249
local lines = {}
250
local line_start = 1
251
+ local timeout = opts.preview.timeout or math.huge
252
253
for i = 1, #s do
254
local ch = s:byte(i)
@@ -264,7 +265,7 @@ function utils.timed_split_lines(s, opts)
264
265
266
if i % CHECK_TIME_INTERVAL == 0 then
267
local diff_time = (vim.uv.hrtime() - opts.start_time) / 1e6
- if diff_time > opts.preview.timeout then
268
+ if diff_time > timeout then
269
return
270
end
271
0 commit comments