diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-10-31 11:28:02 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-10-31 11:55:23 +0000 |
commit | 1d4ba8c1edba064421b34c1197c3470a09798218 (patch) | |
tree | df78030ef12f7c275b6c4a888c96032db9b0dfd4 /runtime/lua/vim/termcap.lua | |
parent | 0ab4d362549399c79f662ca635839dafe6c974db (diff) | |
download | rneovim-1d4ba8c1edba064421b34c1197c3470a09798218.tar.gz rneovim-1d4ba8c1edba064421b34c1197c3470a09798218.tar.bz2 rneovim-1d4ba8c1edba064421b34c1197c3470a09798218.zip |
fix: another round of type annotation fixes
Diffstat (limited to 'runtime/lua/vim/termcap.lua')
-rw-r--r-- | runtime/lua/vim/termcap.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/termcap.lua b/runtime/lua/vim/termcap.lua index 2c36561587..4aa41bba9b 100644 --- a/runtime/lua/vim/termcap.lua +++ b/runtime/lua/vim/termcap.lua @@ -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 |