aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
diff options
context:
space:
mode:
authorMatthew Nibecker <hello@mattnibecker.com>2020-12-12 21:16:43 -0500
committerJames McCoy <jamessan@jamessan.com>2020-12-13 21:03:27 -0500
commite8ae3ade770843681f72fc49be45338b39bea922 (patch)
tree403559585bc84bc1740f1f7b1348b1ee45e8343d /src/nvim/api/buffer.c
parent9c5b4c87e19657d605f1917503be54298967ad45 (diff)
downloadrneovim-e8ae3ade770843681f72fc49be45338b39bea922.tar.gz
rneovim-e8ae3ade770843681f72fc49be45338b39bea922.tar.bz2
rneovim-e8ae3ade770843681f72fc49be45338b39bea922.zip
Fix lsp tests breaking from new LuaJIT version
Apparently the new version of LuaJIT changed the consistency with which it sorted table dictionaries. IIRC lua sorts dictionary keys by memory address, so it would appear that the reasons tests were previously passing was because of a differentiation in the implementation of the lua runtime. Ensure that array fields in the lsp protocol tables are consistently created, by using ipair when generating arrays for completionItemKind and symbolItemKind. For CodeActionKind, the current implementation includes both the keys and the values in the array. This is incorrect. Ensure that only the values are included in the array and sort them for consistency.
Diffstat (limited to 'src/nvim/api/buffer.c')
0 files changed, 0 insertions, 0 deletions