File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lua/kitty-scrollback/backport Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11-- NOTE: copied from
2- -- https://github.com/neovim/neovim/blob/ca760e645ba4d1fdb0b6fff3ac98231c3d683306 /runtime/lua/vim/_system.lua
2+ -- https://github.com/neovim/neovim/blob/909b18d05a8d472b12c156e1663282bf6f5ce307 /runtime/lua/vim/_system.lua
33
44--- @diagnostic disable
55local uv = vim .uv
@@ -83,7 +83,8 @@ function SystemObj:_timeout(signal)
8383 self :kill (signal or SIG .TERM )
8484end
8585
86- local MAX_TIMEOUT = 2 ^ 31
86+ -- Use max 32-bit signed int value to avoid overflow on 32-bit systems. #31633
87+ local MAX_TIMEOUT = 2 ^ 31 - 1
8788
8889--- @param timeout ? integer
8990--- @return vim.SystemCompleted
Original file line number Diff line number Diff line change 11{
2- "runtime/lua/vim/_system.lua" : " e61df4f00b40b99b47f397b24d03332b17a42ab52aad2c96cb922e887853fdac " ,
2+ "runtime/lua/vim/_system.lua" : " 3bbc4a1c066f050fc21d1347ecfc17cda4d4c84b10ab6aa7207da05309861b13 " ,
33 "runtime/lua/vim/version.lua" : " 681dafb4dad3ca135047112b5c744f1c54759eea4676a94c55cbe0ffce0eb930"
44}
You can’t perform that action at this time.
0 commit comments