Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-D-coder authored and lewis6991 committed Aug 14, 2023
1 parent 23619e1 commit d8fd714
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/treesitter-context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,11 @@ local function throttle(f, ms)
end

local function win_close(winid)
if winid ~= nil and api.nvim_win_is_valid(winid) then
vim.schedule(function() api.nvim_win_close(winid, true) end)
end
vim.schedule(function()
if winid ~= nil and api.nvim_win_is_valid(winid) then
api.nvim_win_close(winid, true)
end
end)
end

local function close()
Expand Down

0 comments on commit d8fd714

Please sign in to comment.