mirror of
https://github.com/neovim/neovim.git
synced 2026-03-30 12:22:08 +00:00
fix(lua): relax vim.wait() timeout validation #36900
Problem:
After bc0635a9fc `vim.wait()` rejects floats
and NaN values.
Solution:
Restore the prior behavior, while still supporting `math.huge`. Update
tests to cover float case.
This commit is contained in:
@@ -2319,7 +2319,7 @@ stack traceback:
|
||||
true,
|
||||
exec_lua [[
|
||||
local start_time = vim.uv.hrtime()
|
||||
vim.wait(50, nil) -- select('#', ...) == 1
|
||||
vim.wait(50.1, nil) -- select('#', ...) == 1
|
||||
return vim.uv.hrtime() - start_time > 25000
|
||||
]]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user