Files
neovim/runtime/lua/vim
Michael Lingelbach eece0735fe 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
2021-07-11 11:34:26 -07:00
..
2018-12-20 11:57:30 +01:00
2020-11-12 22:21:34 -05:00
2021-06-14 21:45:14 +02:00
2021-05-01 08:19:48 -04:00