aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-07-11 11:34:26 -0700
committerGitHub <noreply@github.com>2021-07-11 11:34:26 -0700
commiteece0735fe3b4f70747644ebf5daf7320f441616 (patch)
tree241418fcb4d526d7a4f8f76044dc21004234ce8d /runtime/lua/vim/lsp/handlers.lua
parente5b75d41db026f7fc9b62582a1c76549b59d6532 (diff)
downloadrneovim-eece0735fe3b4f70747644ebf5daf7320f441616.tar.gz
rneovim-eece0735fe3b4f70747644ebf5daf7320f441616.tar.bz2
rneovim-eece0735fe3b4f70747644ebf5daf7320f441616.zip
fix(lsp): avoid ipairs on non-sequential tables (#15059)
ipairs terminates on the first nil index when iterating over table keys: for i,k in ipairs( {[1] = 'test', [3] = 'test'} ) do print(i, k) end prints: 1 test Instead, use pairs which continues iterating over the entire table: for i,k in pairs( {[1] = 'test', [3] = 'test'} ) do print(i, k) end prints: 1 test 3 test
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
0 files changed, 0 insertions, 0 deletions