Skip to content

Commit 3893f70

Browse files
committed
fix: vim.wait(0) should poll int signal
1 parent 40548af commit 3893f70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/treesitter-matchup/internal.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ local get_lang_matches = function(bufnr, root, lang, srow, erow)
7474
local last_time = vim.uv.hrtime()
7575
local check_interrupt = function()
7676
if vim.uv.hrtime() - last_time > 100e6 then
77-
local got_int = select(2, vim.wait(1)) == -2
77+
local got_int = select(2, vim.wait(0)) == -2
7878
if got_int then error('Interrupted') end
7979
last_time = vim.uv.hrtime()
8080
end

0 commit comments

Comments
 (0)