From 8cd1257afb806e4cc871d26d7bd2f7f6e91c1ea9 Mon Sep 17 00:00:00 2001 From: Mike Smith <10135646+mikesmithgh@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:33:09 -0500 Subject: [PATCH] chore: latest backport changes --- lua/kitty-scrollback/backport/_system.lua | 5 +++-- lua/kitty-scrollback/backport/backport-sha.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/kitty-scrollback/backport/_system.lua b/lua/kitty-scrollback/backport/_system.lua index d8434d2..7229e53 100644 --- a/lua/kitty-scrollback/backport/_system.lua +++ b/lua/kitty-scrollback/backport/_system.lua @@ -1,5 +1,5 @@ -- NOTE: copied from --- https://github.com/neovim/neovim/blob/ca760e645ba4d1fdb0b6fff3ac98231c3d683306/runtime/lua/vim/_system.lua +-- https://github.com/neovim/neovim/blob/909b18d05a8d472b12c156e1663282bf6f5ce307/runtime/lua/vim/_system.lua ---@diagnostic disable local uv = vim.uv @@ -83,7 +83,8 @@ function SystemObj:_timeout(signal) self:kill(signal or SIG.TERM) end -local MAX_TIMEOUT = 2 ^ 31 +-- Use max 32-bit signed int value to avoid overflow on 32-bit systems. #31633 +local MAX_TIMEOUT = 2 ^ 31 - 1 --- @param timeout? integer --- @return vim.SystemCompleted diff --git a/lua/kitty-scrollback/backport/backport-sha.json b/lua/kitty-scrollback/backport/backport-sha.json index 75e9893..3173e4e 100644 --- a/lua/kitty-scrollback/backport/backport-sha.json +++ b/lua/kitty-scrollback/backport/backport-sha.json @@ -1,4 +1,4 @@ { - "runtime/lua/vim/_system.lua": "e61df4f00b40b99b47f397b24d03332b17a42ab52aad2c96cb922e887853fdac", + "runtime/lua/vim/_system.lua": "3bbc4a1c066f050fc21d1347ecfc17cda4d4c84b10ab6aa7207da05309861b13", "runtime/lua/vim/version.lua": "681dafb4dad3ca135047112b5c744f1c54759eea4676a94c55cbe0ffce0eb930" }