aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_stringbuffer.lua
diff options
context:
space:
mode:
authorskewb1k <skewb1kunix@gmail.com>2025-12-09 21:59:06 +0300
committerGitHub <noreply@github.com>2025-12-09 13:59:06 -0500
commitbc0635a9fc9c15a2423d4eb35f627d127d00fa46 (patch)
tree126aa84b6cc9d63f6269533dc6cf84bb07b69e31 /runtime/lua/vim/_stringbuffer.lua
parent3b6e8e484edfb5f60990def1d90c4d046b59dc7e (diff)
downloadrneovim-bc0635a9fc9c15a2423d4eb35f627d127d00fa46.tar.gz
rneovim-bc0635a9fc9c15a2423d4eb35f627d127d00fa46.tar.bz2
rneovim-bc0635a9fc9c15a2423d4eb35f627d127d00fa46.zip
fix(lua): vim.wait(math.huge) fails #36885
Problem: `nlua_wait()` uses `luaL_checkinteger()` which doesn't support `math.huge` since it's double type. On PUC Lua this fails with 'number has no integer representation' error and on LuaJIT this overflows int. Solution: Use `luaL_checknumber()` and handle `math.huge`.
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions