fix: another round of type annotation fixes

This commit is contained in:
Lewis Russell
2024-10-31 11:28:02 +00:00
committed by Lewis Russell
parent 0ab4d36254
commit 1d4ba8c1ed
7 changed files with 49 additions and 36 deletions

View File

@@ -38,7 +38,7 @@ function M.query(caps, cb)
local k, rest = resp:match('^\027P1%+r(%x+)(.*)$')
if k and rest then
local cap = vim.text.hexdecode(k)
if not pending[cap] then
if not cap or not pending[cap] then
-- Received a response for a capability we didn't request. This can happen if there are
-- multiple concurrent XTGETTCAP requests
return