Skip to content

Commit 29319ed

Browse files
authored
chore: latest backport changes (#291)
1 parent bb45cb9 commit 29319ed

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lua/kitty-scrollback/backport/_system.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
55
local uv = vim.uv
@@ -83,7 +83,8 @@ function SystemObj:_timeout(signal)
8383
self:kill(signal or SIG.TERM)
8484
end
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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"runtime/lua/vim/_system.lua": "e61df4f00b40b99b47f397b24d03332b17a42ab52aad2c96cb922e887853fdac",
2+
"runtime/lua/vim/_system.lua": "3bbc4a1c066f050fc21d1347ecfc17cda4d4c84b10ab6aa7207da05309861b13",
33
"runtime/lua/vim/version.lua": "681dafb4dad3ca135047112b5c744f1c54759eea4676a94c55cbe0ffce0eb930"
44
}

0 commit comments

Comments
 (0)