Skip to content

Commit

Permalink
fix: timeout must be >= 0 for vim.wait
Browse files Browse the repository at this point in the history
  • Loading branch information
phanen authored and willothy committed Dec 28, 2024
1 parent ab2e108 commit 814f3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/flatten/guest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function M.maybe_block(block)
vim.cmd.qa({ bang = true })
end
waiting = true
local res, ctx = vim.wait(0xFFFFFFFFFFFFFFFF, function()
local res, ctx = vim.wait(0X7FFFFFFF, function()
return waiting == false
or vim.api.nvim_get_chan_info(host) == vim.empty_dict()
end, 200, false)
Expand Down

0 comments on commit 814f3d2

Please sign in to comment.