Skip to content

Commit 34d5e40

Browse files
committed
chore: remove workaround for neovim/neovim#31633
Upstream issue resolved. ref: #1599
1 parent dd1aa78 commit 34d5e40

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lua/fzf-lua/utils.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,16 +1105,12 @@ function M.keymap_set(mode, lhs, rhs, opts)
11051105
end
11061106
end
11071107

1108-
-- Taken from `runtime/lua/vim/_system.lua`
1109-
-- will raise exception without timeout on 32-bit systems (#1599)
1110-
local MAX_TIMEOUT = 2 ^ 31 - 1
1111-
11121108
---@param cmd string[]
11131109
---@return string[] lines in the stdout or stderr, separated by '\n'
11141110
---@return integer exit_code (0: success)
11151111
function M.io_systemlist(cmd)
11161112
if vim.system ~= nil then -- nvim 0.10+
1117-
local proc = vim.system(cmd):wait(MAX_TIMEOUT)
1113+
local proc = vim.system(cmd):wait()
11181114
local output = (type(proc.stderr) == "string" and proc.stderr or "")
11191115
.. (type(proc.stdout) == "string" and proc.stdout or "")
11201116
return vim.split(output, "\n", { trimempty = true }), proc.code
@@ -1128,7 +1124,7 @@ end
11281124
---@return integer exit_code (0: success)
11291125
function M.io_system(cmd)
11301126
if vim.system ~= nil then -- nvim 0.10+
1131-
local proc = vim.system(cmd):wait(MAX_TIMEOUT)
1127+
local proc = vim.system(cmd):wait()
11321128
local output = (type(proc.stderr) == "string" and proc.stderr or "")
11331129
.. (type(proc.stdout) == "string" and proc.stdout or "")
11341130
return output, proc.code

0 commit comments

Comments
 (0)